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_REV=11
VERSION_MAJOR=0 VERSION_MAJOR=0
VERSION_MINOR=1 VERSION_MINOR=2
## Start of generic script part ## Start of generic script part
@@ -523,6 +523,7 @@ execute() {
STEP_RETURN=$? STEP_RETURN=$?
;; ;;
[sS]) # skip step [sS]) # skip step
STEP_RETURN=0
return 0 return 0
;; ;;
*) *)
@@ -613,6 +614,9 @@ continous() {
if [ $res -ne 0 ] ; then if [ $res -ne 0 ] ; then
break break
fi fi
if [ $STEP_RETURN -ne 0 ] ; then
break
fi
done done
return $STEP_RETURN return $STEP_RETURN
} }