mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-10 13:57:22 +03:00
feature #575: bug in run_probes, cannot user exec_and_log
This commit is contained in:
parent
fd20b21081
commit
fd82af7352
@ -31,7 +31,12 @@ function run_dir {
|
|||||||
cd $1
|
cd $1
|
||||||
for i in `ls *`;do
|
for i in `ls *`;do
|
||||||
if [ -x "$i" ]; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user