Skip to content

Instantly share code, notes, and snippets.

@stephanos
Last active January 15, 2017 08:33
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephanos/d48fd3500614bd83e63e to your computer and use it in GitHub Desktop.
Save stephanos/d48fd3500614bd83e63e to your computer and use it in GitHub Desktop.
Download current Go App Engine SDK
#!/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