Allow absence of latest release zip

https://github.com/alexbelgium/hassio-addons/issues/380
This commit is contained in:
Alexandre
2022-07-05 15:21:00 +02:00
committed by GitHub
parent 129f5d4ed2
commit e9bc8a6704

View File

@@ -43,8 +43,7 @@ xargs) || LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/
grep "browser_download_url.*zip" |
cut -d : -f 2,3 |
tr -d \" |
head -n 1 |
xargs)
head -n 1)
[ "$DEBUG" = "debug" ] && echo "url: $LATEST_RELEASE"