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

Merge pull request #57 from YunoHost-Apps/testing

Fix Admin download in updater
This commit is contained in:
tituspijean 2021-10-03 13:53:43 +02:00 committed by GitHub
commit d9bf3b7aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 "'")) 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" 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 # 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. # Sometimes the release name starts with a "v", so let's filter it out.