1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Fix Admin download in updater

This commit is contained in:
tituspijean 2021-10-03 13:52:22 +02:00
parent 1f484e2149
commit eef5a583ff
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -21,7 +21,7 @@ version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.
assets=($(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '[ .[] | select(.tag_name=="'$version'").assets[].browser_download_url ] | join(" ") | @sh' | tr -d "'"))
admin_repo="TryGhost/Admin"
assets+=("https://api.github.com/repos/TryGhost/Admin/zipball/$version")
assets+=("https://github.com/TryGhost/Admin/archive/refs/tags/${version}.zip")
# Later down the script, we assume the version has only digits and dots
# Sometimes the release name starts with a "v", so let's filter it out.