simpler expression
authorJan Pospíšil <honik@ntc.zcu.cz>
Wed, 3 Sep 2008 08:27:29 +0000 (08:27 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Wed, 3 Sep 2008 08:27:29 +0000 (08:27 +0000)
org.glite.testsuites.ctb/LB/lb-common.sh

index 575e5c9..7344b29 100755 (executable)
@@ -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