Skip to content

Commit

Permalink
check if the version is equal to or greater than
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 committed Apr 24, 2019
1 parent e1ce38d commit 5ade9f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ade9f1

Please sign in to comment.