From: Jan Pospíšil Date: Tue, 2 Sep 2008 15:52:26 +0000 (+0000) Subject: fix quote bug X-Git-Tag: myproxy-config-R_2_0_2_1~47 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=20a02d5631dff526c5ac127d0738ac2cb2c8410c;p=jra1mw.git fix quote bug --- diff --git a/org.glite.testsuites.ctb/LB/lb-common.sh b/org.glite.testsuites.ctb/LB/lb-common.sh index 4a44ab7..33d3150 100755 --- a/org.glite.testsuites.ctb/LB/lb-common.sh +++ b/org.glite.testsuites.ctb/LB/lb-common.sh @@ -83,8 +83,8 @@ function check_exec() return $TEST_ERROR fi # XXX: maybe use bash's command type? - ret=`which $1 > /dev/null 2>&1` - if [ $? -eq 0 ] && [ -x "$ret" ]; then + local ret=`which $1 > /dev/null 2>&1` + if [ $? -eq 0 ] && [ -x $ret ]; then return $TEST_OK else return $TEST_ERROR @@ -127,8 +127,7 @@ function check_listener() req_program=$1 req_port=$2 if [ -z $1 ]; then - print_newline - print_error "No program name entered" + set_error "No program name entered" return $TEST_ERROR fi @@ -142,5 +141,4 @@ function check_listener() else return $TEST_OK fi - }