Last active
January 15, 2017 08:33
-
-
Save stephanos/d48fd3500614bd83e63e to your computer and use it in GitHub Desktop.
Download current Go App Engine SDK
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
#!/bin/bash | |
VERSION_URL="https://appengine.google.com/api/updatecheck" | |
VERSION=$(echo $(curl ${VERSION_URL}) | sed -E 's/release: \"(.+)\"(.*)/\1/g') | |
ARCH="386" | |
if [[ `uname -a` == *x86_64* ]] | |
then | |
ARCH="amd64" | |
fi | |
FILE=go_appengine_sdk_linux_$ARCH-$VERSION.zip | |
echo "downloading '$FILE'" | |
wget https://commondatastorage.googleapis.com/appengine-sdks/featured/$FILE -nv | |
unzip -q $FILE -d . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment