From 0cbafda845efb570704ef42fca17ffa1adaa1d5e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 24 Oct 2019 21:27:34 +0200 Subject: [PATCH] improve version check --- nextcloud_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 26e16575..a4bae509 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -310,7 +310,7 @@ fi lowest_compatible_nc 13 # Major versions unsupported -if [ "${CURRENTVERSION%%.*}" == "$NCBAD" ] +if [[ "${CURRENTVERSION%%.*}" -le "$NCBAD" ]] then msg_box "Please note that updates between multiple major versions are unsupported! Your situation is: Current version: $CURRENTVERSION