From 3bd6f298f2bfd91a26226ce65a132e205d34c24a Mon Sep 17 00:00:00 2001 From: Bkeenke <128972800+bkeenke@users.noreply.github.com> Date: Tue, 30 Apr 2024 00:08:16 +0300 Subject: [PATCH] Update init.sh --- init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.sh b/init.sh index 8740d93..0e20cdb 100644 --- a/init.sh +++ b/init.sh @@ -85,12 +85,12 @@ install_package () { install_go() { rm -rf /opt/go && mkdir -p /opt/go && cd /opt/go - wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz - rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz + wget https://go.dev/dl/go1.22.2.linux-amd64.tar.gz + rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.2.linux-amd64.tar.gz echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile source /etc/profile && source ~/.profile if go version >/dev/null 2>&1; then - echo "Golang installed" + colorized_echo green "golang install" else colorized_echo red "golang not found" exit 1