Created
February 6, 2018 03:12
-
-
Save k2wanko/32b4165f64404bf9909e3487eb5fe366 to your computer and use it in GitHub Desktop.
goapp
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 | |
# Require: $ gcloud components install app-engine-go | |
gcloud="$(which gcloud)" | |
[ -L "$gcloud" ] && gcloud="$(readlink "$gcloud")" | |
appdir="$(dirname "$(dirname "$gcloud")")" | |
goapp="${appdir}/platform/google_appengine/goapp" | |
if ! [ -f "$goapp" ]; then | |
echo "goapp is not in the Google Cloud SDK libraries." >&2 | |
echo "Hint: try running this command:" >&2 | |
echo "" >&2 | |
echo " gcloud components install app-engine-go" >&2 | |
fi | |
python "$goapp" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment