0
votes

After installing the google cloud SDK using the curl https://sdk.cloud.google.com | bash I encountered an issue where gloud commands were still not being recognized. Therefore gcloud init wasn't working to initialize the SDK.

I tried deleting the "google-cloud-sdk" folder to do a new install, but my terminal is now printing errors every time I open it. The errors are:

user/google-cloud-sdk/exec -l /bin/bash/google-cloud-sdk/path.bash.inc: No such file or directory

and

user/.bash_profile: line 7: syntax error near unexpected token `fi' -bash: /User/.bash_profile: line 7: `fi

Something is is obviously lingering from the previous install but since the gcloud command is still not recognized I can't use any glcoud commands to uninstall.

Let me know if there is any helpful information I am missing.

1

1 Answers

1
votes

So I found that the .bash_profile comes from the "Update Shell Profile" Command within the Python 3.5 Folder. This is the file that gets written to when the Google SDK asks if you want to modify your path for command completion. Deleting the paths referring to the SDK within this file fixes the problem.