Skip to content

[CY-5242] [Bug]install-binary.sh returning 2 URLs for OS=linux breaking 'helm plugin install' on linux #50

@johnphilipscs

Description

@johnphilipscs

When this line is executed with OS=linux, a string containing 2 URLs are returned and then the download curl fails due to malformed URL:

DOWNLOAD_URL=$(curl -s $latest_url | grep $OS | awk '/"browser_download_url":/{gsub( /[,"]/,"", $2); print $2}')

Here is what is returned:
https://github.com/codacy/helm-ssm/releases/download/3.1.9/helm-ssm-linux-arm.tgz https://github.com/codacy/helm-ssm/releases/download/3.1.9/helm-ssm-linux.tgz

Due to this helm plugin install always fails if run on OS that return linux to this line:

OS=$(echo $(uname)|tr '[:upper:]' '[:lower:]')

Seems have been result of arm addition causing 2 entries in releases to match grep for 'linux'

Metadata

Metadata

Assignees

No one assigned

    Labels

    jira-issueIssue tracked on JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions