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"