Skip to content

Commit 3bf7107

Browse files
committed
Fix regression on plugin installation for Helm 2
Fixes #223
1 parent 55d7572 commit 3bf7107

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

install-binary.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ export GREP_COLOR="never"
88

99
HELM_MAJOR_VERSION=$(helm version --client --short | awk -F '.' '{print $1}')
1010

11-
if [ "$HELM_MAJOR_VERSION" = "Client: v2" ]; then
12-
: ${HELM_PLUGIN_DIR:="$(helm home --debug=false)/plugins/helm-diff"}
13-
fi
11+
: ${HELM_PLUGIN_DIR:="$(helm home --debug=false)/plugins/helm-diff"}
1412

1513
# Convert the HELM_PLUGIN_DIR to unix if cygpath is
1614
# available. This is the case when using MSYS2 or Cygwin

scripts/dep-helm-version.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/bin/sh
2+
3+
grep "k8s.io/helm" go.mod | sed -n -e "s/.*k8s.io\/helm \(v[.0-9]*\).*/\1/p"

0 commit comments

Comments
 (0)