step() function did not provide argument pass-through
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user