Fix continous execution ignoring return values and thous jumping number boundaries
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
VERSION_REV=11
|
||||
VERSION_MAJOR=0
|
||||
VERSION_MINOR=1
|
||||
VERSION_MINOR=2
|
||||
|
||||
## Start of generic script part
|
||||
|
||||
@@ -523,6 +523,7 @@ execute() {
|
||||
STEP_RETURN=$?
|
||||
;;
|
||||
[sS]) # skip step
|
||||
STEP_RETURN=0
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
@@ -613,6 +614,9 @@ continous() {
|
||||
if [ $res -ne 0 ] ; then
|
||||
break
|
||||
fi
|
||||
if [ $STEP_RETURN -ne 0 ] ; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
return $STEP_RETURN
|
||||
}
|
||||
|
Reference in New Issue
Block a user