autoupdate: fix script if 'latest' file cant be downloaded

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-10-05 23:16:54 +02:00
parent d49131cdf0
commit 8c8b7c640c

View File

@ -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