Skip to content

Commit

Permalink
bash: detect GCLOUD_ROOT early and concretely
Browse files Browse the repository at this point in the history
  • Loading branch information
samba committed Sep 16, 2021
1 parent d29002d commit 434afe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dotfiles/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if command -v pyenv >/dev/null; then
eval "$(pyenv init -)"
fi

test -d "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk" && \
export GCLOUD_ROOT="/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk"

if command -v gcloud >/dev/null; then
export GCLOUD_ROOT=$(gcloud info --format="value(installation.sdk_root)")
export GOOGLE_APPENGINE_PATH="${GCLOUD_ROOT}/platform/google_appengine/"
Expand Down

0 comments on commit 434afe9

Please sign in to comment.