improve version check

This commit is contained in:
Daniel Hansson 2019-10-24 21:27:34 +02:00 committed by GitHub
parent 62fbdd0888
commit 0cbafda845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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