From d71f9b11ba14980671b8d66f90005211a11e3c66 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 27 Jul 2022 16:15:16 +0800 Subject: [PATCH] Update install.sh --- plugins/php/versions/74/install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 932a2d965..da851c24a 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -64,9 +64,8 @@ echo "$sourcePath/php/php${PHP_VER}" ZIP_OPTION='--with-zip' libzip_version=`pkg-config libzip --modversion` - - -if [ `echo "$libzip_version >= 0.11"|bc` -eq 1 ];then +compare_ver=`echo "${libzip_version} >= 0.11"|bc` +if [ "$compare_ver" -eq "1" ];then ZIP_OPTION="--with-zip=${serverPath}/lib/libzip" fi