From 820434ee7113b9cae5a207aa3c98111712fe0b34 Mon Sep 17 00:00:00 2001 From: Aleksander Cynarski Date: Tue, 23 Nov 2021 03:08:41 +0100 Subject: [PATCH] xdebug_enable bash fix --- docker/usr/local/bin/xdebug_enable | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/usr/local/bin/xdebug_enable b/docker/usr/local/bin/xdebug_enable index c47505e..29b9b49 100755 --- a/docker/usr/local/bin/xdebug_enable +++ b/docker/usr/local/bin/xdebug_enable @@ -21,12 +21,12 @@ h2() { h1 "Actual environment: ${ENVIRONMENT}" -if [ $ENVIRONMENT != 'production' ]; then +if [[ $ENVIRONMENT != 'production' ]]; then wget -O phpunit https://phar.phpunit.de/phpunit-9.phar install phpunit /usr/local/bin fi -if [ $ENVIRONMENT == 'development' ]; then +if [[ $ENVIRONMENT == 'development' ]]; then h2 "Install xdebug" apk --update --no-cache add autoconf g++ make pecl install -f xdebug