From 6fdb0d64afd34d0cd8348327ce3a3ea360ffde5d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 13 Sep 2020 23:36:35 +0200 Subject: [PATCH] Un-bork quoting to allow splitting Closes https://git.autonomic.zone/autonomic-cooperative/abra/issues/12. --- abra | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/abra b/abra index b41e1979..b4df934a 100755 --- a/abra +++ b/abra @@ -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