Created
May 30, 2018 10:44
-
-
Save ramuta/1c274b3468a74d9659d4dd56461fdea3 to your computer and use it in GitHub Desktop.
Script for installing Cloud SDK on a Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$(uname)" == "Darwin" ]; then link="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-200.0.0-darwin-x86_64.tar.gz"; else echo "Not Mac";fi | |
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then link= "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-200.0.0-linux-x86_64.tar.gz"; else echo "Not Linux"; fi | |
echo ${link} | |
if [ ! -d ~/google-cloud-sdk ]; then wget -qO- "$link" | tar xvz -C ~; else echo "google-cloud-sdk folder already downloaded in home directory"; fi | |
cd ~ | |
bash ./google-cloud-sdk/install.sh --quiet | |
gcloud components install app-engine-python --quiet | |
gcloud components install app-engine-python-extras --quiet | |
gcloud components update --quiet |
PatrickVienne
commented
Jun 28, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment