made script to update go
parent
8347850e17
commit
5742ab296d
@ -0,0 +1,7 @@
|
|||||||
|
GO_VERSION="$1"
|
||||||
|
TMP_DIR="tmp_go"
|
||||||
|
mkdir -p ${TMP_DIR}
|
||||||
|
wget --no-verbose --output-document=/dev/stdout https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz | \
|
||||||
|
sudo tar --directory ${TMP_DIR} -xzf /dev/stdin
|
||||||
|
sudo rm -rf /usr/local/go
|
||||||
|
sudo mv ${TMP_DIR}/go /usr/local
|
Loading…
Reference in New Issue