Fix gcloud sdk installation

This commit is contained in:
Nicole Tietz-Sokolskaya 2021-05-03 10:01:59 -04:00
parent ae8cbe6e0f
commit b9f3354bcb
1 changed files with 10 additions and 21 deletions

View File

@ -56,17 +56,7 @@ function install_google_cloud_sdk() {
return return
fi fi
# Create environment variable for correct distribution sudo snap install google-cloud-sdk --classic
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt update
sudo apt install google-cloud-sdk
} }
function install_pyenv() { function install_pyenv() {
@ -115,13 +105,12 @@ function install_git_latest() {
sudo apt install git sudo apt install git
} }
#install_utilities # TODO #install_utilities
install_docker #install_docker
install_docker_compose #install_docker_compose
install_asdf #install_asdf
install_google_cloud_sdk #install_google_cloud_sdk
install_pyenv #install_pyenv
install_ctags #install_ctags
install_wtfutil #install_wtfutil
install_git_latest #install_git_latest