Created
September 4, 2023 12:55
-
-
Save yeungon/ed5f3801206cf7d9ef244859ccbf0822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
####################################################### | |
# KiwiPanel Script Installer v0.1 | |
# To install KiwiPanel Script type: | |
# curl -sO && bash install | |
####################################################### | |
install_go(){ | |
sudo snap install go --classic | |
} | |
check_go(){ | |
if ! command -v go version &> /dev/null; then | |
echo "go version could not be found" | |
echo '=========Start installing Go lang========='; | |
install_go | |
else | |
echo "go has been installed already"; | |
fi | |
} | |
check_go | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment