mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 01:31:51 +02: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" |
|
grep "browser_download_url.*zip" |
|
||||||
cut -d : -f 2,3 |
|
cut -d : -f 2,3 |
|
||||||
tr -d \" |
|
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)
|
xargs)
|
||||||
|
|
||||||
[ "$DEBUG" = "debug" ] && echo "url: $LATEST_RELEASE"
|
[ "$DEBUG" = "debug" ] && echo "url: $LATEST_RELEASE"
|
||||||
|
|
||||||
[ "$DEBUG" = "debug" ] && echo "Before curl"
|
[ "$DEBUG" = "debug" ] && echo "Before curl"
|
||||||
|
|||||||
Reference in New Issue
Block a user