From 5ade9f158a593ee5fa4ee50f88a2917dc2f2b76c Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 24 Apr 2019 15:04:31 +0200 Subject: [PATCH] check if the version is equal to or greater than --- nextcloud_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index abaa661a..a99b6f3d 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -232,7 +232,7 @@ fi # Check if PHP version is compatible with $NCVERSION PHP_VER=71 NC_VER=16 -if [ "${NCVERSION%%.*}" -eq "$NC_VER" ] +if [ "${NCVERSION%%.*}" -ge "$NC_VER" ] then if [ "$(php -v | head -n 1 | cut -d " " -f 2 | cut -c 1,3)" -lt "$PHP_VER" ] then