Created
May 17, 2019 21:33
Revisions
-
jdolitsky created this gist
May 17, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ #!/bin/bash -ex export HELM_HOME="/tmp/helm3" mkdir -p "${HELM_HOME}/bin" rm -f helm-release.tar.gz wget -O helm-release.tar.gz https://get.helm.sh/helm-v3.0.0-alpha.1-darwin-amd64.tar.gz if [[ "$(openssl dgst -sha256 helm-release.tar.gz | awk '{print $2}')" != "w562e5bbb5b8b8a6a46c080970c1fea35ff908a1402f56e5d4c8f327c9ff4835" ]]; then echo "checksum does not match" exit 1 fi rm -rf helm-download/ && mkdir -p helm-download/ tar xf helm-release.tar.gz -C helm-download/ --strip-components 1 chmod +x helm-download/helm mv helm-download/helm "${HELM_HOME}/bin" rm -rf helm-release.tar.gz helm-download/ export PATH="${HELM_HOME}/bin:${PATH}" helm init helm version set +x echo echo "Helm v3.0.0-alpha.1 has been installed. Please run the following to use:" echo echo " export HELM_HOME=\"/tmp/helm3\"" echo " export PATH=\"${HELM_HOME}/bin:\${PATH}\"" echo " helm version" echo echo "If you'd like to use Helm 3 in all new terminal sessions, please run the following:" echo echo " echo 'export HELM_HOME=\"/tmp/helm3\"' >> \"\${HOME}/.bash_profile\"" echo " echo 'export PATH=\"${HELM_HOME}/bin:\${PATH}\"' >> \"\${HOME}/.bash_profile\"" echo