Skip to content

Commit 6889caf

Browse files
committed
prefix env variables with BUILDPACK_, fix bash test operators
1 parent 5a50154 commit 6889caf

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 [ -n "$NGINX_VERSION" ] || [ -n "$PHP_VERSION" ] || [ -n "$WORDPRESS_VERSION" ] || [ -n "$S3_BUCKET" ] || [ -n "$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)