From 90d6c799ff3e3f1d9947ef8027937f6102a43870 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 9 May 2009 19:54:47 +0200 Subject: [PATCH] Fix a bashism in gperf.sh This (hopefully) fixes a bug reported by evocallaghan with ksh. Signed-off-by: Uli Schlachter --- build-utils/gperf.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-utils/gperf.sh b/build-utils/gperf.sh index e02e0f03e..bc10775fb 100755 --- a/build-utils/gperf.sh +++ b/build-utils/gperf.sh @@ -70,7 +70,8 @@ do_tokens() { } do_c() { - if ! which gperf > /dev/null; then + which gperf > /dev/null + if test $? = 1 ; then echo "gperf not found. You need to install gperf." > /dev/stderr; exit 1; fi;