Allow for helm install script to work on Windows

This installs to the GOPATH bin folder which will work cross platform and will likely be setup on the user's path. Previously it used a standard unix path which is non-existent on Windows. As currently written it requires the user to have go installed. To run on windows you then just need to pass the --no-sudo flag.

Signed-off-by: mburst <mburst@maxburstein.com>
pull/9577/head
Max Burstein 5 years ago committed by mburst
parent a499b4b179
commit be2913efbc

@ -22,7 +22,7 @@
: ${DEBUG:="false"}
: ${VERIFY_CHECKSUM:="true"}
: ${VERIFY_SIGNATURES:="false"}
: ${HELM_INSTALL_DIR:="/usr/local/bin"}
: ${HELM_INSTALL_DIR:="${GOPATH}/bin"}
: ${GPG_PUBRING:="pubring.kbx"}
HAS_CURL="$(type "curl" &> /dev/null && echo true || echo false)"

Loading…
Cancel
Save