From 80082f85118c90e9fad524b16f827474dedc0f9e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 7 Aug 2020 12:47:04 +0100 Subject: [PATCH] bin/brew: only export CI if not set. Also: GitHub Actions already sets it. --- bin/brew | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/brew b/bin/brew index 13eafcbeab..d56478f63c 100755 --- a/bin/brew +++ b/bin/brew @@ -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