1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 11:17:05 +03:00

check whether TRAVIS_PULL_REQUEST is "false"

This commit is contained in:
Shawn Allen 2017-07-25 13:37:43 -07:00
parent 15f6a1c484
commit 4cb23f6097

View File

@ -8,7 +8,7 @@ args=$@
branch=$TRAVIS_BRANCH branch=$TRAVIS_BRANCH
# the presence of $TRAVIS_PULL_REQUEST tells us whether this is a pull request # the presence of $TRAVIS_PULL_REQUEST tells us whether this is a pull request
if [[ "$TRAVIS_PULL_REQUEST" != "" ]]; then if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
target_branch=$TRAVIS_PULL_REQUEST_BRANCH target_branch=$TRAVIS_PULL_REQUEST_BRANCH
# if the *source* branch begins with "release" # if the *source* branch begins with "release"
if [[ "$branch" =~ ^release ]]; then if [[ "$branch" =~ ^release ]]; then