From ac547e4b88e449728263f25f19230af0089e2df9 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 27 Jul 2022 15:50:20 +0800 Subject: [PATCH] Update install.sh --- plugins/php/versions/74/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 13c7863fb..755a47670 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -64,7 +64,9 @@ echo "$sourcePath/php/php${PHP_VER}" ZIP_OPTION='--with-zip' libzip_version=`pkg-config libzip --modversion` -if [ "$libzip_version" -lt "0.11" ];then + + +if [ `echo "$libzip_version < 0.11"|bc` -eq 1 ];then ZIP_OPTION="--with-zip=${serverPath}/lib/libzip" fi