From c13b6b39c64e1e897e973e833fd7efdc1e5efc11 Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Fri, 6 Aug 2021 12:18:07 -0500 Subject: [PATCH] [Docker] Fixed multi-argument commands --- docker/bash.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/bash.sh b/docker/bash.sh index cff5215e850b8..fb793ec52389c 100755 --- a/docker/bash.sh +++ b/docker/bash.sh @@ -177,7 +177,7 @@ while (( $# )); do --) shift - COMMAND="$@" + COMMAND=( "$@" ) break ;; @@ -197,7 +197,7 @@ while (( $# )); do DOCKER_IMAGE_NAME=$1 shift else - COMMAND="$@" + COMMAND=( "$@" ) break fi ;; @@ -209,7 +209,7 @@ if [[ -z "${DOCKER_IMAGE_NAME}" ]]; then show_usage >&2 fi -if [[ "${COMMAND}" = bash ]]; then +if [[ "${COMMAND[@]}" = bash ]]; then INTERACTIVE=true USE_NET_HOST=true fi