Skip to content

Commit

Permalink
fix install-plugin script
Browse files Browse the repository at this point in the history
Signed-off-by: xh4n3 <xyn1016@gmail.com>
  • Loading branch information
xh4n3 committed Jan 13, 2020
1 parent 6f4aded commit b081da8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/install_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ if [ -n "${HELM_PUSH_PLUGIN_NO_INSTALL_HOOK}" ]; then
fi

version="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)"
echo "Downloading and installing helm-push v${version} ..."
echo "Downloading and installing helm-acr v${version} ..."

url=""
if [ "$(uname)" = "Darwin" ]; then
url="https://github.com/chartmuseum/helm-push/releases/download/v${version}/helm-push_${version}_darwin_amd64.tar.gz"
url="https://github.com/AliyunContainerService/helm-acr/releases/download/v${version}/helm-acr_${version}_darwin_amd64.tar.gz"
elif [ "$(uname)" = "Linux" ] ; then
url="https://github.com/chartmuseum/helm-push/releases/download/v${version}/helm-push_${version}_linux_amd64.tar.gz"
url="https://github.com/AliyunContainerService/helm-acr/releases/download/v${version}/helm-acr_${version}_linux_amd64.tar.gz"
else
url="https://github.com/chartmuseum/helm-push/releases/download/v${version}/helm-push_${version}_windows_amd64.tar.gz"
url="https://github.com/AliyunContainerService/helm-acr/releases/download/v${version}/helm-acr_${version}_windows_amd64.tar.gz"
fi

echo $url
Expand Down

0 comments on commit b081da8

Please sign in to comment.