git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b2d8a5
)
put two ifs together
author
Jan Pospíšil
<honik@ntc.zcu.cz>
Tue, 2 Sep 2008 14:58:22 +0000
(14:58 +0000)
committer
Jan Pospíšil
<honik@ntc.zcu.cz>
Tue, 2 Sep 2008 14:58:22 +0000
(14:58 +0000)
org.glite.testsuites.ctb/LB/lb-common.sh
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.testsuites.ctb/LB/lb-common.sh
b/org.glite.testsuites.ctb/LB/lb-common.sh
index
5d6172e
..
39081d9
100755
(executable)
--- a/
org.glite.testsuites.ctb/LB/lb-common.sh
+++ b/
org.glite.testsuites.ctb/LB/lb-common.sh
@@
-75,23
+75,12
@@
function check_exec()
return $TEST_ERROR
fi
# XXX: maybe use bash's command type?
- which $1 > /dev/null 2>&1
- if [ $? -eq 0 ]; then
- local ret=`which $1`
- if [ -x "$ret" ]; then
- return $TEST_OK
- else
- return $TEST_ERROR
- fi
- else
+ ret=`which $1 > /dev/null 2>&1`
+ if [ $? -eq 0 ] && [ -x "$ret" ]; then
+ return $TEST_OK
+ else
return $TEST_ERROR
fi
-
-# if [ $? -eq 0 ] && [ -x "$ret" ]; then
-# return $TEST_OK
-# else
-# return $TEST_ERROR
-# fi
}
function check_binaries()