Skip to content

Commit 050e1e1

Browse files
author
Michael Sauter
committed
Use POSIX compatible way to detect Helm binary
1 parent 303ef45 commit 050e1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install-binary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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

2222
HELM_HOME=$("${HELM_BIN}" home --debug=false)

0 commit comments

Comments
 (0)