From faa4d2b0a1a161127b4d993f2d43852644d5bc07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20B=C3=BCrk?= <stefan@buerk.tech>
Date: Tue, 13 Feb 2024 06:56:13 +0100
Subject: [PATCH] [TASK] Use correct command dispatch in `runTests.sh`
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The command dispatch for `-s phpstanGenerateBaseline`
is modified to a simple command dispatch instead of
the bash expansion - which is not needed in this case.

Resolves: #103106
Releases: main, 12.4, 11.5
Change-Id: I771945f2a0751cbf4d350ffe0e8e8f2d78a04d86
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83092
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
---
 Build/Scripts/runTests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh
index b62a4503a74a..77a0cf32bf18 100755
--- a/Build/Scripts/runTests.sh
+++ b/Build/Scripts/runTests.sh
@@ -967,7 +967,7 @@ case ${TEST_SUITE} in
         ;;
     phpstanGenerateBaseline)
         COMMAND="php -dxdebug.mode=off bin/phpstan analyse -c Build/phpstan/${PHPSTAN_CONFIG_FILE} --no-progress --no-interaction --memory-limit 4G --generate-baseline=Build/phpstan/phpstan-baseline.neon"
-        ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name phpstan-baseline-${SUFFIX} ${IMAGE_PHP} "${COMMAND[@]}"
+        ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name phpstan-baseline-${SUFFIX} ${IMAGE_PHP} /bin/sh -c "${COMMAND}"
         SUITE_EXIT_CODE=$?
         ;;
     unit)
-- 
GitLab