Skip to content

Commit cd7c1ea

Browse files
author
Your Name
committed
use helm binary environment variable for all helm commands
1 parent a0bb808 commit cd7c1ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install-binary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ "${helm_version}" == "<no value>" ]; then
1313
fi
1414

1515
if [ "${helm_version:0:2}" == "v2" ]; then
16-
: "${HELM_PLUGIN_PATH:="$(helm home)/plugins/helm-release"}"
16+
: "${HELM_PLUGIN_PATH:="$($HELM_BIN home)/plugins/helm-release"}"
1717

1818
# Convert the HELM_PLUGIN_PATH to unix if cygpath is
1919
# available. This is the case when using MSYS2 or Cygwin
@@ -23,7 +23,7 @@ if [ "${helm_version:0:2}" == "v2" ]; then
2323
HELM_PLUGIN_PATH=$(cygpath -u "${HELM_PLUGIN_PATH}")
2424
fi
2525
elif [ "${helm_version:0:2}" == "v3" ]; then
26-
eval "$(helm env)"
26+
eval "$($HELM_BIN env)"
2727

2828
HELM_PLUGIN_PATH="${HELM_PLUGINS}"
2929
else

0 commit comments

Comments
 (0)