chore(script): Delete CRLF from jq print-outs

This commit is contained in:
Zaiming Shi 2021-03-14 16:23:19 +01:00 committed by Zaiming (Stone) Shi
parent 0fead391d2
commit 2c0c69142d
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ get_assets(){
--header "${AUTH}" \ --header "${AUTH}" \
--header "Accept: application/vnd.github.v3+json" \ --header "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/emqx/${DASHBOARD_REPO}/releases/tags/${VERSION}" \ "https://api.github.com/repos/emqx/${DASHBOARD_REPO}/releases/tags/${VERSION}" \
| jq --raw-output ".assets[] | select(.name==\"${RELEASE_ASSET_FILE}\").url")" | jq --raw-output ".assets[] | select(.name==\"${RELEASE_ASSET_FILE}\").url" \
| tr -d '\n' | tr -d '\r')"
# Get GitHub's S3 redirect URL # Get GitHub's S3 redirect URL
redirect_url=$(curl --silent --show-error \ redirect_url=$(curl --silent --show-error \
--header "${AUTH}" \ --header "${AUTH}" \