check if the version is equal to or greater than

This commit is contained in:
Daniel Hansson 2019-04-24 15:04:31 +02:00 committed by GitHub
parent e1ce38dae1
commit 5ade9f158a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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