step() function did not provide argument pass-through

This commit is contained in:
2019-12-31 00:13:54 +01:00
parent 02cccb71bd
commit d369913e9f

View File

@@ -8,7 +8,7 @@
## Version information ## Version information
VERSION_REV=9 VERSION_REV=9
VERSION_MAJOR=0 VERSION_MAJOR=1
VERSION_MINOR=0 VERSION_MINOR=0
## Start of generic script part ## Start of generic script part
@@ -447,13 +447,14 @@ checkStep() {
# execute given step # execute given step
step() { step() {
local stepNo=0 local stepNo=0
local stepArgs=("$@")
checkStep "$1" checkStep "$1"
stepNo=$? stepNo=$?
if [ "$stepNo" == "0" ] ; then if [ "$stepNo" == "0" ] ; then
return 1 return 1
else else
step_$stepNo step_$stepNo "${stepArgs[@]}"
fi fi
} }