diff --git a/src/im_mad/remotes/run_probes b/src/im_mad/remotes/run_probes index 8602af1487..366a7ca8ff 100755 --- a/src/im_mad/remotes/run_probes +++ b/src/im_mad/remotes/run_probes @@ -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 )