From be2913efbcd8bcb82e6d31ca3558ef614381ceb5 Mon Sep 17 00:00:00 2001 From: Max Burstein Date: Thu, 8 Apr 2021 12:59:52 -0700 Subject: [PATCH] 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 --- scripts/get-helm-3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-helm-3 b/scripts/get-helm-3 index cf76cd9d8..80d29e0eb 100755 --- a/scripts/get-helm-3 +++ b/scripts/get-helm-3 @@ -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)"