bin/brew: only export CI if not set.

Also: GitHub Actions already sets it.
This commit is contained in:
Mike McQuaid 2020-08-07 12:47:04 +01:00
parent cc8c0f83cc
commit 80082f8511
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -79,9 +79,9 @@ then
export HOMEBREW_EDITOR="$VISUAL"
fi
# Set CI variable for GitHub Actions, Azure Pipelines, Jenkins
# Set CI variable for Azure Pipelines and Jenkins
# (Set by default on Circle and Travis CI)
if [[ -n "$GITHUB_ACTIONS" || -n "$TF_BUILD" || -n "$JENKINS_HOME" ]]
if [[ -z "$CI" ]] && [[ -n "$TF_BUILD" || -n "$JENKINS_HOME" ]]
then
export CI="1"
fi