Un-bork quoting to allow splitting

Closes autonomic-cooperative/abra#12.
This commit is contained in:
Luke Murphy 2020-09-13 23:36:35 +02:00
parent 67dafbb274
commit 6fdb0d64af
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

8
abra
View File

@ -69,7 +69,8 @@ sub_run_args(){
exit
fi
docker exec "$DOCKER_ARGS" -it "$CONTAINER" "$@"
# shellcheck disable=SC2086
docker exec $DOCKER_ARGS -it "$CONTAINER" "$@"
return
}
@ -124,10 +125,11 @@ sub_logs (){
--timestamps"
else
# shellcheck disable=SC2124
LOGS_ARGS="$@"
LOGS_ARGS=$@
fi
docker service logs "${STACK_NAME}_${SERVICE}" "$LOGS_ARGS"
# shellcheck disable=SC2086
docker service logs "${STACK_NAME}_${SERVICE}" $LOGS_ARGS
}
subcommand=$1