Skip to content

Commit

Permalink
fix version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
JooNiv committed Sep 20, 2024
1 parent 2393236 commit 58c60c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tag-from-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ function version_gt() {
if [ "$1" = "$2" ]; then
return 0
elif [ "$(printf '%s\n' "$1" "$2" | sort -V | head -n 1)" != "$1" ]; then
return 1
else
return 0
else
return 1
fi
}

Expand Down

0 comments on commit 58c60c8

Please sign in to comment.