From c594bca17a959351f845ce8713cd4410ba248df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Thu, 5 Jun 2014 21:20:54 +0200 Subject: [PATCH] Error out in git apply script on *BSD. --- debian/tools/gitapply.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/tools/gitapply.sh b/debian/tools/gitapply.sh index 895b27b3..e89620e3 100755 --- a/debian/tools/gitapply.sh +++ b/debian/tools/gitapply.sh @@ -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{