Skip to content

Commit c15e1c3

Browse files
committed
use more portable command -v to test if gzip exists
This also works with the busybox version.
1 parent 22d0858 commit c15e1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/short-first-segment.sh

+1-1
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)