shoestrap/recipes/default/golang

14 lines
426 B
Plaintext
Raw Normal View History

2013-08-08 03:23:13 +00:00
#!/bin/bash
2015-11-03 19:38:46 +00:00
version="1.5.1"
2013-08-08 03:23:13 +00:00
if [[ "$UNAME_STR" == "Darwin" ]]; then
wget -P $TMP_DIR/ http://golang.org/dl/go${version}.darwin-amd64-osx10.8.pkg
installer -pkg $TMP_DIR/go${version}.darwin-amd64-osx10.8.pkg
elif [[ "$UNAME_STR" == "Linux" ]]; then
wget -P $TMP_DIR/ http://golang.org/dl/go${version}.linux-amd64.tar.gz
# Do something
echo "**** Install from $TMP_DIR/go${version}.linux-amd64.tar.gz"
fi