Update init.sh

This commit is contained in:
Bkeenke 2024-04-30 00:18:57 +03:00 committed by GitHub
parent 0e42bb3424
commit 94ad8cf5f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ install_package () {
} }
install_go() { install_go() {
if go version >/dev/null 2>&1; then if go >/dev/null 2>&1; then
colorized_echo green "golang install" colorized_echo green "golang install"
else else
rm -rf /opt/go && mkdir -p /opt/go && cd /opt/go rm -rf /opt/go && mkdir -p /opt/go && cd /opt/go