Skip to content

Commit

Permalink
build: Use sort -n for automated version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Nov 7, 2023
1 parent c11e9d9 commit 77c5c97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/generate-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ get_version() {
fi

# Use higher version from new version and current version
v=$(printf '%s\n' "$v" "$cv" | sort -r | head -n1)

v=$(printf '%s\n' "$v" "$cv" | sort -n -r | head -n1)
echo "$v"
}

Expand Down

0 comments on commit 77c5c97

Please sign in to comment.