Files
winf-photobooth/support/dependencies/check-host-gzip.sh
Michael b8783708ae Initial Commit
- initial default booting image
2026-11-06 20:45:42 +01:00

22 lines
393 B
Bash
Executable File

#!/bin/sh
candidate="$1" # ignored
gzip="$(which gzip)"
if [ ! -x "${gzip}" ]; then
# echo nothing: no suitable gzip found
exit 1
fi
# gzip displays its version string on stdout
# pigz displays its version string on stderr
version="$("${gzip}" --version 2>&1)"
case "${version}" in
(*pigz*)
# echo nothing: no suitable gzip found
exit 1
;;
esac
printf "%s" "${gzip}"