From 6153cca56fac3f413591cb2acd11bdf9f69e9d0f Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 9 Dec 2016 17:10:00 +0100 Subject: [PATCH] update to newer version, don't downgrade. --- nextcloud_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 4d722488..68ac8d3a 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -64,7 +64,7 @@ else fi # Check if new version is larger than current version installed. -if [[ "$NCVERSION" < "$CURRENTVERSION" ]] +if [[ "$NCVERSION" > "$CURRENTVERSION" ]] then echo "Latest version is: $NCVERSION. Current version is: $CURRENTVERSION." echo -e "\e[32mNew version available! Upgrade continues...\e[0m"