From 46ca83acf5031210105e609b4ff79ecec5deeb4a Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Wed, 31 Jul 2024 12:52:03 +0200 Subject: [PATCH] [TASK] Split COMMAND variable to be type strict --- Build/Scripts/runTests.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index ec39045..7099c15 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -499,13 +499,13 @@ case ${TEST_SUITE} in cleanTestFiles ;; composer) - COMMAND=(composer "$@") - ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-command-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} "${COMMAND[@]}" + COMMAND_PARTS=(composer "$@") + ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-command-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} "${COMMAND_PARTS[@]}" SUITE_EXIT_CODE=$? ;; composerInstall) - COMMAND=(composer install "$@") - ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-install-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} "${COMMAND[@]}" + COMMAND_PARTS=(composer install "$@") + ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-install-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} "${COMMAND_PARTS[@]}" SUITE_EXIT_CODE=$? ;; composerInstallMax) @@ -612,8 +612,8 @@ case ${TEST_SUITE} in SUITE_EXIT_CODE=$? ;; npm) - COMMAND="npm $@" - ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name npm-command-${SUFFIX} ${IMAGE_NODE} /bin/sh -c "${COMMAND}" + COMMAND_PARTS=(npm "$@") + ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name npm-command-${SUFFIX} ${IMAGE_NODE} /bin/sh -c "${COMMAND_PARTS[@]}" SUITE_EXIT_CODE=$? ;; phpstan)