Created
February 5, 2020 23:11
-
-
Save kholisrag/54a5d4259100f098bfcd0830a1514604 to your computer and use it in GitHub Desktop.
Get Latest Helm3 (Bash script / shell script)
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 | |
function install_helm() { | |
echo "Install helm3 latest version" | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | |
chmod +x get_helm.sh | |
./get_helm.sh | |
} | |
function main () { | |
if [[ $EUID -ne 0 ]]; then | |
sudo $(realpath "$0") | |
exit | |
fi | |
install_helm | |
echo "All Done..." | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment