Fix: step arguments not passed on correctly if strings with spaces were involved
This commit is contained in:
@@ -340,7 +340,7 @@ execute() {
|
||||
read -p "Start: (y)es/[n]o/(s)kip? " answer
|
||||
case $answer in
|
||||
[yY])
|
||||
step_$1 $1 $STEP_ARGS
|
||||
step_$1 $1 "${STEP_ARGS[@]}"
|
||||
;;
|
||||
[sS]) # skip step
|
||||
return 0
|
||||
@@ -351,7 +351,7 @@ execute() {
|
||||
;;
|
||||
esac
|
||||
else
|
||||
step_$1 $1 $STEP_ARGS
|
||||
step_$1 $1 "${STEP_ARGS[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -630,7 +630,7 @@ main() {
|
||||
EMPTYCALL=0
|
||||
read -r -a START <<< "$1"
|
||||
shift
|
||||
STEP_ARGS="$@"
|
||||
STEP_ARGS=( "$@" )
|
||||
fi
|
||||
|
||||
# compatibility check of sequence
|
||||
|
Reference in New Issue
Block a user