mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 03:16:14 +01:00

[TASK] Split COMMAND variable to be type strict (#1415)

Fixes #1418
This commit is contained in:
Felix Althaus 2024-07-31 14:28:56 +02:00 committed by GitHub
parent 6c8f0176c2
commit 0dc3e82829
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -499,13 +499,13 @@ case ${TEST_SUITE} in
cleanTestFiles cleanTestFiles
;; ;;
composer) composer)
COMMAND=(composer "$@") 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[@]}" ${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=$? SUITE_EXIT_CODE=$?
;; ;;
composerInstall) composerInstall)
COMMAND=(composer install "$@") 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[@]}" ${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=$? SUITE_EXIT_CODE=$?
;; ;;
composerInstallMax) composerInstallMax)
@ -612,8 +612,8 @@ case ${TEST_SUITE} in
SUITE_EXIT_CODE=$? SUITE_EXIT_CODE=$?
;; ;;
npm) npm)
COMMAND="npm $@" COMMAND_PARTS=(npm "$@")
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name npm-command-${SUFFIX} ${IMAGE_NODE} /bin/sh -c "${COMMAND}" ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name npm-command-${SUFFIX} ${IMAGE_NODE} "${COMMAND_PARTS[@]}"
SUITE_EXIT_CODE=$? SUITE_EXIT_CODE=$?
;; ;;
phpstan) phpstan)