Skip to content

Commit 48ddad8

Browse files
authored
fix: reverse logic in brew-bump env fns (#4732)
1 parent 15500bb commit 48ddad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/steps/brew-bump.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ main() {
1010
echo "Checking environment variables"
1111

1212
# We need VERSION to bump the brew formula
13-
if is_env_var_set "VERSION"; then
13+
if ! is_env_var_set "VERSION"; then
1414
echo "VERSION is not set"
1515
exit 1
1616
fi
1717

1818
# We need HOMEBREW_GITHUB_API_TOKEN to push up commits
19-
if is_env_var_set "HOMEBREW_GITHUB_API_TOKEN"; then
19+
if ! is_env_var_set "HOMEBREW_GITHUB_API_TOKEN"; then
2020
echo "HOMEBREW_GITHUB_API_TOKEN is not set"
2121
exit 1
2222
fi

0 commit comments

Comments
 (0)