Error out in git apply script on *BSD.

This commit is contained in:
Michael Müller 2014-06-05 21:20:54 +02:00
parent 3c33a592f6
commit c594bca17a

View File

@ -82,6 +82,12 @@ if [ "$nogit" -eq 0 ] && command -v git >/dev/null 2>&1; then
exit 1
fi
if gzip -V 2>&1 | grep "BSD" &> /dev/null; then
echo "This script is not compatible with *BSD utilities." >&2
echo "Please install git, which provides the same functionality and will be used instead." >&2
exit 1;
fi
# Decode base85 git data, prepend with a gzip header
awk_b85='
BEGIN{