mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
autoupdate: fix script if 'latest' file cant be downloaded
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d49131cdf0
commit
8c8b7c640c
@ -79,6 +79,10 @@ if [ ! -f /var/lock/update.lock ]; then
|
|||||||
# compare installed version with latest released version
|
# compare installed version with latest released version
|
||||||
THIS_VERSION="`echo "$THIS_VERSION" | cut -d "-" -f3 | tr -d "r"`"
|
THIS_VERSION="`echo "$THIS_VERSION" | cut -d "-" -f3 | tr -d "r"`"
|
||||||
|
|
||||||
|
if [ -Z $NEW_VERSION ]; then
|
||||||
|
NEW_VERSION="$THIS_VERSION"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$THIS_VERSION" -lt "$NEW_VERSION" ]; then
|
if [ "$THIS_VERSION" -lt "$NEW_VERSION" ]; then
|
||||||
|
|
||||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" ]; then
|
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "manual" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user