From c15e1c3dd809e75456762d19cf2bdc9b5d69e3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Nov 2024 11:35:18 +0100 Subject: [PATCH] use more portable command -v to test if gzip exists This also works with the busybox version. --- tests/short-first-segment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/short-first-segment.sh b/tests/short-first-segment.sh index a0b26c3a..7a11345f 100755 --- a/tests/short-first-segment.sh +++ b/tests/short-first-segment.sh @@ -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