Skip to content

Commit

Permalink
Fix install-binary.sh to make plugin installation for v3.2.0 work
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu authored Jan 8, 2022
1 parent 034e2f2 commit 860f354
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ verifySupported() {
# getDownloadURL checks the latest available version.
getDownloadURL() {
version=$(git -C "$HELM_PLUGIN_DIR" describe --tags --exact-match 2>/dev/null || :)
if [ -n "$version" ] && [ "$version" -gt "3.1.3" ]; then
if [ -n "$version" ]; then
DOWNLOAD_URL="https://github.com/$PROJECT_GH/releases/download/$version/helm-diff-$OS-$ARCH.tgz"
elif [ -n "$version" ]; then
DOWNLOAD_URL="https://github.com/$PROJECT_GH/releases/download/$version/helm-diff-$OS.tgz"
else
# Use the GitHub API to find the download url for this project.
url="https://api.github.com/repos/$PROJECT_GH/releases/latest"
Expand Down

0 comments on commit 860f354

Please sign in to comment.