From f0094f1a99cbb1dd354eae711c7e208272a8f15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Brada?= Date: Thu, 6 Apr 2023 13:00:06 +0200 Subject: [PATCH] Tweak version detection in setup-integration-tests script --- compose/bin/setup-integration-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/bin/setup-integration-tests b/compose/bin/setup-integration-tests index 2b5f239fb..294a96936 100755 --- a/compose/bin/setup-integration-tests +++ b/compose/bin/setup-integration-tests @@ -13,7 +13,7 @@ bin/clinotty mysql -h"${MYSQL_INTEGRATION_HOST}" -uroot -p"${MYSQL_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON ${MYSQL_INTEGRATION_DATABASE}.* TO '${MYSQL_INTEGRATION_USER}'@'%';FLUSH PRIVILEGES;" if [[ ! -f "src/${MYSQL_INTEGRATION_CONFIG}" ]]; then - MAGENTO_VERSION=$(bin/magento --version --no-ansi | cut -d" " -f 3) + MAGENTO_VERSION=$(bin/magento --version --no-ansi | grep "Magento" | cut -d" " -f 3) IFS=. read -r -a MAGENTO_VERSION_SEGMENTS <<< "${MAGENTO_VERSION}" MAGENTO_MAJOR="${MAGENTO_VERSION_SEGMENTS[0]}.${MAGENTO_VERSION_SEGMENTS[1]}" cp template/"${MYSQL_INTEGRATION_CONFIG}"."${MAGENTO_MAJOR}".dist src/${MYSQL_INTEGRATION_CONFIG}