Skip to content

Instantly share code, notes, and snippets.

@kholisrag
Created February 5, 2020 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kholisrag/54a5d4259100f098bfcd0830a1514604 to your computer and use it in GitHub Desktop.
Save kholisrag/54a5d4259100f098bfcd0830a1514604 to your computer and use it in GitHub Desktop.
Get Latest Helm3 (Bash script / shell script)
#!/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