From 4a599eec455c99d43f8493d0eb855f14dc12531a Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 12 May 2017 01:52:39 +0300 Subject: [PATCH] ci: fix syntax error in `deploy.sh` (#16739) --- scripts/ci/deploy.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh index b21b84471b..b06e4d07ab 100755 --- a/scripts/ci/deploy.sh +++ b/scripts/ci/deploy.sh @@ -50,9 +50,8 @@ case ${CI_MODE} in ( cd ${TRAVIS_BUILD_DIR}/aio - if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then - # This is a PR: It has already been deployed in `build.sh`. - else + # Only deploy if this not a PR. PRs are deployed early in `build.sh`. + if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then # This is upstream master: Deploy to staging travisFoldStart "deploy.aio.staging" yarn deploy-staging