From e4a4541635dae69957c2fb061a82b590e8586bad Mon Sep 17 00:00:00 2001 From: GoonerW <31711960+GoonerW@users.noreply.github.com> Date: Mon, 10 Jun 2019 14:33:22 +1000 Subject: [PATCH] Update PHP template to use "correct" test for $COMPOSER_ARGS I ran into this issue recently trying to get a Drupal deployment happening. Pushing to git was resulting in Kudu ignoring the COMPOSER_ARGS environment variable. I noticed that the other empty variable checks in the resulting deploy.sh script use "-n" instead of "-e". Making the above change to my deploy.sh script fixed the issue for my deployments. --- lib/templates/deploy.bash.php.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/deploy.bash.php.template b/lib/templates/deploy.bash.php.template index 71daa80..151f134 100644 --- a/lib/templates/deploy.bash.php.template +++ b/lib/templates/deploy.bash.php.template @@ -2,7 +2,7 @@ # ----------- initializeDeploymentConfig() { - if [ ! -e "$COMPOSER_ARGS" ]; then + if [ ! -n "$COMPOSER_ARGS" ]; then COMPOSER_ARGS="--no-interaction --prefer-dist --optimize-autoloader --no-progress --no-dev --verbose" echo "No COMPOSER_ARGS variable declared in App Settings, using the default settings" else