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