Fix: step arguments not passed on correctly if strings with spaces were involved

This commit is contained in:
2019-12-11 23:16:35 +01:00
parent 1ceefcfe95
commit 68a16b2fdd

View File

@@ -340,7 +340,7 @@ execute() {
read -p "Start: (y)es/[n]o/(s)kip? " answer read -p "Start: (y)es/[n]o/(s)kip? " answer
case $answer in case $answer in
[yY]) [yY])
step_$1 $1 $STEP_ARGS step_$1 $1 "${STEP_ARGS[@]}"
;; ;;
[sS]) # skip step [sS]) # skip step
return 0 return 0
@@ -351,7 +351,7 @@ execute() {
;; ;;
esac esac
else else
step_$1 $1 $STEP_ARGS step_$1 $1 "${STEP_ARGS[@]}"
fi fi
} }
@@ -630,7 +630,7 @@ main() {
EMPTYCALL=0 EMPTYCALL=0
read -r -a START <<< "$1" read -r -a START <<< "$1"
shift shift
STEP_ARGS="$@" STEP_ARGS=( "$@" )
fi fi
# compatibility check of sequence # compatibility check of sequence