mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-25 02:12:14 +00:00
Fix download not handling files with spaces in names correctly
This commit is contained in:
parent
615f72e7fa
commit
44fea6428c
1 changed files with 3 additions and 3 deletions
|
@ -173,7 +173,7 @@ download() {
|
|||
echo "Downloading tagged release ${TAG}"
|
||||
api GET repos/$REPO/releases/tags/"$TAG" > "$TMP_DIR"/assets.json
|
||||
fi
|
||||
jq --raw-output '.assets[] | "\(.name) \(.browser_download_url)"' < "$TMP_DIR"/assets.json | while read name url ; do
|
||||
jq --raw-output '.assets[] | "\(.browser_download_url) \(.name)"' < "$TMP_DIR"/assets.json | while read url name ; do
|
||||
curl --fail -H "Authorization: token $TOKEN" -o "$name" -L "$url"
|
||||
done
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue