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:
parent
fd20b21081
commit
fd82af7352
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user