feature #575: bug in run_probes, cannot user exec_and_log

This commit is contained in:
Javi Fontan authored and Jaime Melis committed 2011-04-29 01:14:05 +02:00
1 parent fd20b21081
commit 04352b3335
1 file changed
+6 -1
+6 -1
View File
@@ -31,7 +31,12 @@ function run_dir {
cd $1
for i in `ls *`;do
if [ -x "$i" ]; then
exec_and_log "./$i $ARGUMENTS" "Error executing $i"
./$i $ARGUMENTS
EXIT_CODE=$?
if [ "x$EXIT_CODE" != "x0" ]; then
error_message "Error executing $i"
exit $EXIT_CODE
fi
fi
done
)