Adapt if no zip in latest release

https://github.com/alexbelgium/hassio-addons/issues/380
This commit is contained in:
Alexandre
2022-07-05 10:28:45 +02:00
committed by GitHub
parent d16d1cd7e3
commit 2e1f5a71f7

View File

@@ -39,7 +39,13 @@ LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/wdaan/vuet
grep "browser_download_url.*zip" |
cut -d : -f 2,3 |
tr -d \" |
xargs) || \
LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/wdaan/vuetorrent/releases |
grep "browser_download_url.*zip" |
cut -d : -f 2,3 |
tr -d \" |
xargs)
[ "$DEBUG" = "debug" ] && echo "url: $LATEST_RELEASE"
[ "$DEBUG" = "debug" ] && echo "Before curl"