Skip to content

Commit 141dcd5

Browse files
authored
fix in logic for detecting PR
1 parent 2d92c30 commit 141dcd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/set-up-globals.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ echo 'export BRANCH=$(echo $CIRCLE_BRANCH | grep -v '"'"'^\(master\|[0-9]\+.x\)$
3232
echo 'export PR_ENV=${BRANCH:+pr-$BRANCH}' >> $BASH_ENV
3333
echo 'export CIRCLE_ENV=ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV
3434
# If we are on a pull request
35-
if [[ $CIRCLE_BRANCH != "master" && -n ${CIRCLE_PULL_REQUEST+x} ]]
35+
if [[ ${CIRCLE_BRANCH} != "master" && ! -z ${CIRCLE_PULL_REQUEST} ]]
3636
then
3737
# Then use a pr- branch/multidev
3838
PR_NUMBER=${CIRCLE_PULL_REQUEST##*/}
@@ -95,4 +95,4 @@ echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config"
9595
git config --global user.email "$GIT_EMAIL"
9696
git config --global user.name "Circle CI"
9797
# Ignore file permissions.
98-
git config --global core.fileMode false
98+
git config --global core.fileMode false

0 commit comments

Comments
 (0)