From: Florian Forster Date: Sun, 12 Jul 2009 09:03:07 +0000 (+0200) Subject: build.sh, version-gen.sh: Remove bashisms. X-Git-Tag: collectd-4.6.4~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de1d790c3c63d5046ec6422f95cab7b980fdce1c;p=collectd.git build.sh, version-gen.sh: Remove bashisms. Thanks to Peter Bray for pointing them out. --- diff --git a/build.sh b/build.sh index 804b2e25..20854b13 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,8 @@ check_for_application () { for PROG in "$@" do - if ! which "$PROG" >/dev/null 2>&1; then + which "$PROG" >/dev/null 2>&1 + if test $? -ne 0; then cat >&2 <