From 2bca46c6157308cc1c0df5cd8a53fcac05ee4f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chastanet?= Date: Sat, 9 Mar 2024 17:25:22 +0100 Subject: [PATCH] fix: megalinter version format changed from 7.9.0 to v7.9.0 --- bin/megalinter | 1 + src/_binaries/options/command.megalinter.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/megalinter b/bin/megalinter index e822d563..7283ad69 100755 --- a/bin/megalinter +++ b/bin/megalinter @@ -1625,6 +1625,7 @@ filesOnlyCallback() { checkMegalinterVersionAndExit() { local newVersion Github::getLatestRelease "oxsecurity/megalinter" newVersion + newVersion="$(Version::parse <<<"${newVersion}")" local currentVersion currentVersion="$(Version::parse <<<"${optionMegalinterImage}")" local status=0 diff --git a/src/_binaries/options/command.megalinter.tpl b/src/_binaries/options/command.megalinter.tpl index 7b576999..250e56d5 100644 --- a/src/_binaries/options/command.megalinter.tpl +++ b/src/_binaries/options/command.megalinter.tpl @@ -99,6 +99,7 @@ filesOnlyCallback() { checkMegalinterVersionAndExit() { local newVersion Github::getLatestRelease "oxsecurity/megalinter" newVersion + newVersion="$(Version::parse <<<"${newVersion}")" local currentVersion currentVersion="$(Version::parse <<<"${optionMegalinterImage}")" local status=0