From 68cf98a6b8c2f30d9be4c43aa4f1bd4a0a14d4e0 Mon Sep 17 00:00:00 2001 From: Onur Sumer Date: Thu, 2 Jan 2020 16:55:48 -0500 Subject: [PATCH] fixed a netlify deploy issue for non PR branches Signed-off-by: Onur Sumer --- scripts/env_vars.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env_vars.sh b/scripts/env_vars.sh index 0e0b9e008b3..7e4776488e3 100755 --- a/scripts/env_vars.sh +++ b/scripts/env_vars.sh @@ -11,7 +11,7 @@ if [[ "$CIRCLECI" ]]; then elif [[ "$NETLIFY" ]]; then PR_BRANCH=$BRANCH PR_NUMBER=$REVIEW_ID - if [[ "$PULL_REQUEST" ]]; then + if [ "$PULL_REQUEST" = true ]; then PR_URL="${REPOSITORY_URL}/pull/${PR_NUMBER}" fi fi