From ab912c8b384884fa18d99ff10c34ed7a49823b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= <2189546+boesing@users.noreply.github.com> Date: Sat, 8 Jul 2023 23:01:58 +0200 Subject: [PATCH] bugfix: ensure that conditional statement is actually valid code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com> --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index cf1df45..07f4943 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -148,8 +148,8 @@ if [[ "${PHP}" == "@default" ]]; then RECONFIGURE_PHP_DEFAULT="no" fi -if [[ "${COMMAND}" =~ ^roave-backward-compatibility ]] || [[ "${COMMAND}" =~ ^/usr/bin/env roave-backward-compatibility ]] || [[ "${COMMAND}" =~ ^/usr/local/bin/roave-backward-compatibility ]]; then - echo "NOTE: Due to the execution of \"roave-backward-compatibility\" from within this container, the PHP version won't get changed."; +if [[ "${COMMAND}" =~ "^roave-backward-compatibility-check" ]] || [[ "${COMMAND}" =~ "^/usr/bin/env roave-backward-compatibility-check" ]] || [[ "${COMMAND}" =~ "^/usr/local/bin/roave-backward-compatibility-check" ]]; then + echo "NOTE: Due to the execution of \"roave-backward-compatibility-check\" from within this container, the PHP version won't get changed."; RECONFIGURE_PHP_DEFAULT="no" fi