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'