Skip to content

Commit

Permalink
use more portable command -v to test if gzip exists
Browse files Browse the repository at this point in the history
This also works with the busybox version.
  • Loading branch information
Mic92 committed Nov 18, 2024
1 parent 22d0858 commit c15e1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/short-first-segment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if test "$(uname -m)" != amd64 || test "$(uname)" != Linux; then
exit 77
fi

if ! gzip --version >/dev/null; then
if ! command -v gzip >/dev/null; then
echo "skipping test: gzip not found"
exit 77
fi
Expand Down

0 comments on commit c15e1c3

Please sign in to comment.