lower than, once and for all

This commit is contained in:
Daniel Hansson 2018-03-02 00:12:52 +01:00 committed by GitHub
parent b1ac124f24
commit 752d0c2f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
lib.sh
View File

@ -543,7 +543,7 @@ check_command sudo -u www-data php "$NCPATH"/occ "$@";
}
lowest_compatible_nc() {
if [ "${CURRENTVERSION%%.*}" -gt "$1" ]
if [ "${CURRENTVERSION%%.*}" -lt "$1" ]
then
msg_box "This script is developed to work with Nextcloud $1 and later
Please upgrade your Nextcloud to that version before running this script