Cleanup behavior to function when things are missing

This commit is contained in:
Lockszmith 2022-05-29 00:08:37 +00:00
parent 999422da87
commit 12e3c5a470
14 changed files with 35 additions and 19 deletions

View file

@ -1,4 +1,4 @@
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/usr/lib/google-cloud-sdk/path.bash.inc' ]; then source '/usr/lib/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/usr/lib/google-cloud-sdk/completion.bash.inc' ]; then source '/usr/lib/google-cloud-sdk/completion.bash.inc'; fi
[[ -f '/usr/lib/google-cloud-sdk/path.bash.inc' ]] && source '/usr/lib/google-cloud-sdk/path.bash.inc'
# The next line enables shell command completion for gcloud (as long as gcloud is IN the path).
[[ -n "$(type -fP gcloud)" && -f '/usr/lib/google-cloud-sdk/completion.bash.inc' ]] && source '/usr/lib/google-cloud-sdk/completion.bash.inc'