Skip to content

Instantly share code, notes, and snippets.

@yeungon
Created September 4, 2023 12:55
Show Gist options
  • Save yeungon/ed5f3801206cf7d9ef244859ccbf0822 to your computer and use it in GitHub Desktop.
Save yeungon/ed5f3801206cf7d9ef244859ccbf0822 to your computer and use it in GitHub Desktop.
#!/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