1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-09 09:57:23 +03:00

feature #575: bug in run_probes, cannot user exec_and_log

This commit is contained in:
Javi Fontan 2011-04-28 16:30:03 +02:00
parent fd20b21081
commit fd82af7352

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
)