mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
feature #575: bug in run_probes, cannot user exec_and_log
This commit is contained in:
1 parent
fd20b21081
commit
04352b3335
1 file changed
+6
-1
@@ -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
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user