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_REV=9
VERSION_MAJOR=0
VERSION_MAJOR=1
VERSION_MINOR=0
## Start of generic script part
@@ -447,13 +447,14 @@ checkStep() {
# execute given step
step() {
local stepNo=0
local stepArgs=("$@")
checkStep "$1"
stepNo=$?
if [ "$stepNo" == "0" ] ; then
return 1
else
step_$stepNo
step_$stepNo "${stepArgs[@]}"
fi
}