From c1cd1a8840308c88c11a7fee4a9c0dbc9fe1d892 Mon Sep 17 00:00:00 2001 From: Cody Stamps Date: Tue, 30 May 2023 11:50:03 -0400 Subject: [PATCH] wrap original command in quotes inside of () --- lib/shared.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/shared.bash b/lib/shared.bash index f850e51c..79524aab 100644 --- a/lib/shared.bash +++ b/lib/shared.bash @@ -189,32 +189,32 @@ function build_image_override_file_with_version() { function run_docker_compose() { local command=(docker-compose) if [[ "$(plugin_read_config CLI_VERSION "1")" == "2" ]] ; then - command="docker compose" + command=("docker compose") echo "Command: ${command}" fi if [[ "$(plugin_read_config VERBOSE "false")" == "true" ]] ; then - command+=" --verbose" + command+=(--verbose) echo "Command: ${command}" fi if [[ "$(plugin_read_config ANSI "true")" == "false" ]] ; then - command+=" --no-ansi" + command+=(--no-ansi) echo "Command: ${command}" fi # Enable compatibility mode for v3 files if [[ "$(plugin_read_config COMPATIBILITY "false")" == "true" ]]; then - command+=" --compatibility" + command+=(--compatibility) echo "Command: ${command}" fi for file in $(docker_compose_config_files) ; do - command+=" --file ${file}" + command+=(--file "$file") echo "Command: ${command}" done - command+=" --project-name $(docker_compose_project_name)" + command+=(--project-name "$(docker_compose_project_name)") echo "final command: ${command}"