Skip to content

Commit

Permalink
fix: megalinter version format changed from 7.9.0 to v7.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fchastanet committed Mar 9, 2024
1 parent 0d1b37c commit 2bca46c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/megalinter
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/_binaries/options/command.megalinter.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bca46c

Please sign in to comment.