From 48ddad8351b229da541026612e45017de19e9312 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 12 Jan 2022 15:51:11 -0700 Subject: [PATCH] fix: reverse logic in brew-bump env fns (#4732) --- ci/steps/brew-bump.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/steps/brew-bump.sh b/ci/steps/brew-bump.sh index 6e6889c5..1e621135 100755 --- a/ci/steps/brew-bump.sh +++ b/ci/steps/brew-bump.sh @@ -10,13 +10,13 @@ main() { echo "Checking environment variables" # We need VERSION to bump the brew formula - if is_env_var_set "VERSION"; then + if ! is_env_var_set "VERSION"; then echo "VERSION is not set" exit 1 fi # We need HOMEBREW_GITHUB_API_TOKEN to push up commits - if is_env_var_set "HOMEBREW_GITHUB_API_TOKEN"; then + if ! is_env_var_set "HOMEBREW_GITHUB_API_TOKEN"; then echo "HOMEBREW_GITHUB_API_TOKEN is not set" exit 1 fi