From 53724f918ec70fa2c52ea64c568d2da9ecb536b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Wed, 3 Sep 2008 08:27:29 +0000 Subject: [PATCH] simpler expression --- org.glite.testsuites.ctb/LB/lb-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.2.3