Fix continous execution ignoring return values and thous jumping number boundaries

This commit is contained in:
2020-12-23 23:37:33 +01:00
parent 09300234fc
commit 0a92b49cc7

View File

@@ -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
}