diff --git a/docker/bash.sh b/docker/bash.sh index 0fa5d402e1308..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 @@ -363,8 +363,6 @@ DOCKER_CMD=(${DOCKER_BINARY} run "${COMMAND[@]}" ) -echo "TEMP = " "${DOCKER_CMD[@]}" - if ${DRY_RUN}; then echo "${DOCKER_CMD[@]}" else