mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-12 10:51:01 +01:00
Adapt if no zip in latest release
https://github.com/alexbelgium/hassio-addons/issues/380
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user