Skip to content

Commit

Permalink
Support busybox (#367)
Browse files Browse the repository at this point in the history
* Support busybox

sort -C is not supported in busybox, which is used in alpine linux

* chore: lint + shellcheck fixes

---------

Co-authored-by: Carlos Matos <[email protected]>
  • Loading branch information
elruwen and carlosmmatos authored Oct 10, 2024
1 parent b981dbf commit da7d488
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ old_curl=$(
minimum="7.55"
# Check if the version is less than the minimum
if printf "%s\n" "$version" "$minimum" | sort -V -C; then
if printf "%s\n" "$version" "$minimum" | sort -V -c >/dev/null 2>&1; then
echo 0
else
echo 1
Expand Down

0 comments on commit da7d488

Please sign in to comment.