Skip to content

Commit 029c1e9

Browse files
authored
Merge pull request #339 from michaelsauter/fix/install-script
Fix install script See #322 (comment).
2 parents 303ef45 + e030a44 commit 029c1e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install-binary.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ if type cygpath >/dev/null 2>&1; then
1616
HELM_PLUGIN_DIR="$(cygpath -u "${HELM_PLUGIN_DIR}")"
1717
fi
1818

19-
[ -z "$HELM_BIN" ] && HELM_BIN=$(which helm)
19+
[ -z "$HELM_BIN" ] && HELM_BIN=$(command -v helm)
2020
HELM_MAJOR_VERSION=$("${HELM_BIN}" version --client --short | awk -F '.' '{print $1}')
2121

22-
HELM_HOME=$("${HELM_BIN}" home --debug=false)
2322
[ -z "$HELM_HOME" ] && HELM_HOME=$(helm env | grep 'HELM_DATA_HOME' | cut -d '=' -f2 | tr -d '"')
2423

2524
mkdir -p "$HELM_HOME"

0 commit comments

Comments
 (0)