mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 05:26:32 +00:00
Fix golang install and use v1.17.2
This commit is contained in:
parent
162d5f8b5d
commit
b25b60e545
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
# Installs golang from the web
|
# Installs golang from the web
|
||||||
|
|
||||||
version="1.16.6"
|
version="1.17.2"
|
||||||
if [[ "$UNAME_STR" == "Darwin" ]]; then
|
if [[ "$UNAME_STR" == "Darwin" ]]; then
|
||||||
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.darwin-amd64.pkg"
|
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.darwin-amd64.pkg"
|
||||||
installer -pkg "$TMP_DIR/go${version}.darwin-amd64.pkg"
|
sudo installer -target / -pkg "$TMP_DIR/go${version}.darwin-amd64.pkg"
|
||||||
elif [[ "$UNAME_STR" == "Linux" ]]; then
|
elif [[ "$UNAME_STR" == "Linux" ]]; then
|
||||||
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.linux-amd64.tar.gz"
|
wget -P "$TMP_DIR/" "http://golang.org/dl/go${version}.linux-amd64.tar.gz"
|
||||||
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf "$TMP_DIR/go${version}.linux-amd64.tar.gz"
|
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf "$TMP_DIR/go${version}.linux-amd64.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user