Skip to content

Commit

Permalink
Fix install script
Browse files Browse the repository at this point in the history
  • Loading branch information
burdiyan committed Nov 6, 2017
1 parent 800761b commit 15fc2a8
Show file tree
Hide file tree
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
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.