Skip to content

Commit 5a50154

Browse files
committed
prefix env variables with BUILDPACK_, fix bash syntax
1 parent f311544 commit 5a50154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343

4444
# Prevent publishing if old environment variables set. This feature will be removed in the future
4545
# and thus the "global names" used before will be for application use.
46-
if [ -z "$NGINX_VERSION" || -z "$PHP_VERSION" || -z "$WORDPRESS_VERSION" || -z "$S3_BUCKET" || -z "$WORDPRESS_DIR" ]; then
46+
if [ -z "$NGINX_VERSION" ] || [ -z "$PHP_VERSION" ] || [ -z "$WORDPRESS_VERSION" ] || [ -z "$S3_BUCKET" ] || [ -z "$WORDPRESS_DIR" ]; then
4747
echo "Aborting. Env variables controlling buildpack should be prefixed with \"BUILDPACK_\"."
4848
echo "Rename the variables and push again. For example:"
4949
echo ""

0 commit comments

Comments
 (0)