mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
21
support/dependencies/check-host-gzip.sh
Executable file
21
support/dependencies/check-host-gzip.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user