From: Jan Pospíšil Date: Wed, 3 Sep 2008 08:27:29 +0000 (+0000) Subject: simpler expression X-Git-Tag: myproxy-config-R_2_0_2_1~44 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=53724f918ec70fa2c52ea64c568d2da9ecb536b1;p=jra1mw.git simpler expression --- diff --git a/org.glite.testsuites.ctb/LB/lb-common.sh b/org.glite.testsuites.ctb/LB/lb-common.sh index 575e5c9..7344b29 100755 --- a/org.glite.testsuites.ctb/LB/lb-common.sh +++ b/org.glite.testsuites.ctb/LB/lb-common.sh @@ -83,7 +83,7 @@ function check_exec() fi # XXX: maybe use bash's command type? local ret=`which $1 2> /dev/null` - if [ ! -z "$ret" ] && [ -x $ret ]; then + if [ -n "$ret" -a -x "$ret" ]; then return $TEST_OK else return $TEST_ERROR