2013-08-07 20:23:13 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-11-12 17:59:41 -08:00
|
|
|
# Installs golang from the web
|
2013-08-07 20:23:13 -07:00
|
|
|
|
2019-11-12 17:59:41 -08:00
|
|
|
version="1.13.3"
|
2013-08-07 20:23:13 -07:00
|
|
|
if [[ "$UNAME_STR" == "Darwin" ]]; then
|
2019-11-12 17:59:41 -08:00
|
|
|
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"
|
2013-08-07 20:23:13 -07:00
|
|
|
elif [[ "$UNAME_STR" == "Linux" ]]; then
|
2019-11-12 17:59:41 -08:00
|
|
|
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.linux-amd64.tar.gz"
|
2013-08-07 20:23:13 -07:00
|
|
|
# Do something
|
|
|
|
echo "**** Install from $TMP_DIR/go${version}.linux-amd64.tar.gz"
|
|
|
|
fi
|