Skip to content

Commit

Permalink
bugfix: ensure that conditional statement is actually valid code
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed Jul 8, 2023
1 parent 8051f36 commit ab912c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab912c8

Please sign in to comment.