mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-24 06:26:33 +00:00
14 lines
424 B
Plaintext
14 lines
424 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
version="1.3"
|
||
|
|
||
|
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
|
||
|
|