Fix a bashism in gperf.sh

This (hopefully) fixes a bug reported by evocallaghan with ksh.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-05-09 19:54:47 +02:00 committed by Julien Danjou
parent cf4630dbe1
commit 90d6c799ff
1 changed files with 2 additions and 1 deletions

View File

@ -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;