Skip to content

Commit

Permalink
Fix install script
Browse files Browse the repository at this point in the history
burdiyan committed Nov 6, 2017

Verified

This commit was signed with the committer’s verified signature.
mertalev Mert
1 parent 800761b commit 15fc2a8
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/install.sh → install.sh
Original file line number Diff line number Diff line change
@@ -5,8 +5,11 @@ set -euf -o pipefail
PLUGIN_VERSION=${PLUGIN_VERSION:-"0.1.0"}

file="${HELM_PLUGIN_DIR:-"$(helm home)/plugins/helm-update-config"}/bin/helm-update-config"

mkdir -p $(dirname ${file})

os=$(uname -s | tr '[:upper:]' '[:lower:]')
url="https://github.com/burdiyan/helm-update-config/releases/download/v${PLUGIN_VERSION}/helm-edit_${os}_amd64"
url="https://github.com/burdiyan/helm-update-config/releases/download/v${PLUGIN_VERSION}/helm-update-config_${os}_amd64"

if command -v wget; then
wget -O "${file}" "${url}"
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -6,4 +6,4 @@ ignoreFlags: false
useTunnel: true
command: "$HELM_PLUGIN_DIR/bin/helm-update-config"
hooks:
install: "$HELM_PLUGIN_DIR/scripts/install.sh"
install: "$HELM_PLUGIN_DIR/install.sh"

0 comments on commit 15fc2a8

Please sign in to comment.