mirror of https://git.tuxpa.in/a/code-server.git
fix: reverse logic in brew-bump env fns (#4732)
This commit is contained in:
parent
15500bb388
commit
48ddad8351
|
@ -10,13 +10,13 @@ main() {
|
||||||
echo "Checking environment variables"
|
echo "Checking environment variables"
|
||||||
|
|
||||||
# We need VERSION to bump the brew formula
|
# 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"
|
echo "VERSION is not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We need HOMEBREW_GITHUB_API_TOKEN to push up commits
|
# 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"
|
echo "HOMEBREW_GITHUB_API_TOKEN is not set"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue