From 5742ab296d6e952efaf0c6d21974ad7824e54ebd Mon Sep 17 00:00:00 2001 From: RageCage64 Date: Sat, 10 Sep 2022 09:38:14 -0400 Subject: [PATCH] made script to update go --- update_go.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 update_go.sh diff --git a/update_go.sh b/update_go.sh new file mode 100644 index 0000000..cc74cb9 --- /dev/null +++ b/update_go.sh @@ -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