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
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