Skip to content

Commit 7cd6f03

Browse files
committed
use more portable command -v to test if gzip exists
This also works with the busybox version.
1 parent 065c848 commit 7cd6f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/short-first-segment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if test "$(uname -m)" != amd64 || test "$(uname)" != Linux; then
1111
exit 77
1212
fi
1313

14-
if ! gzip --version >/dev/null; then
14+
if ! command -v gzip >/dev/null; then
1515
echo "skipping test: gzip not found"
1616
exit 77
1717
fi

0 commit comments

Comments
 (0)