From 17f3c409bb67adbea1a06191dc8daf60e245c6b5 Mon Sep 17 00:00:00 2001 From: Bkeenke <128972800+bkeenke@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:34:26 +0300 Subject: [PATCH] Update init.sh --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index 8f96159..2423d53 100644 --- a/init.sh +++ b/init.sh @@ -89,7 +89,7 @@ install_go() { rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile source /etc/profile && source ~/.profile - if go >/dev/null 2>&1; then + if go version >/dev/null 2>&1; then echo "Golang installed" else colorized_echo red "golang not found"