From 20a02d5631dff526c5ac127d0738ac2cb2c8410c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Tue, 2 Sep 2008 15:52:26 +0000 Subject: [PATCH] fix quote bug --- org.glite.testsuites.ctb/LB/lb-common.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 - } -- 1.8.2.3