diff --git a/plugins/gogs/install.sh b/plugins/gogs/install.sh index bb3f992c7..d49fc34d1 100755 --- a/plugins/gogs/install.sh +++ b/plugins/gogs/install.sh @@ -48,7 +48,7 @@ Install_gogs() git config --global push.default simple - if [ "darwin" == "$os" ];then + if [ "darwin" = "$os" ];then file=gogs_${version}_darwin_amd64.zip else file=gogs_${version}_linux_amd64.zip diff --git a/plugins/grafana/install.sh b/plugins/grafana/install.sh index 975daac86..f90772ad7 100755 --- a/plugins/grafana/install.sh +++ b/plugins/grafana/install.sh @@ -18,11 +18,11 @@ sysName=`uname` echo "use system: ${sysName}" OSNAME=`bash ${rootPath}/scripts/getos.sh` -if [ "" == "$OSNAME" ];then +if [ "" = "$OSNAME" ];then OSNAME=`cat ${rootPath}/data/osname.pl` fi -if [ "macos" == "$OSNAME" ];then +if [ "macos" = "$OSNAME" ];then echo "不支持Macox" exit fi @@ -78,7 +78,7 @@ Uninstall_App() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/haproxy/versions/2.6/install.sh b/plugins/haproxy/versions/2.6/install.sh index 77d4ef230..4ccca13bf 100755 --- a/plugins/haproxy/versions/2.6/install.sh +++ b/plugins/haproxy/versions/2.6/install.sh @@ -26,12 +26,12 @@ Install_App() LOCAL_ADDR=common cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") - if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then + if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then LOCAL_ADDR=cn fi - if [ "${LOCAL_ADDR}" == "cn" ];then + if [ "${LOCAL_ADDR}" = "cn" ];then if [ ! -f ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then wget -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://dl.midoks.icu/soft/haproxy/haproxy-${VERSION}.tar.gz fi @@ -94,7 +94,7 @@ Uninstall_App() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/haproxy/versions/2.8/install.sh b/plugins/haproxy/versions/2.8/install.sh index f1a6e8268..6be26adf6 100755 --- a/plugins/haproxy/versions/2.8/install.sh +++ b/plugins/haproxy/versions/2.8/install.sh @@ -26,7 +26,7 @@ Install_App() LOCAL_ADDR=common cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") - if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then + if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then LOCAL_ADDR=cn fi diff --git a/plugins/loki/versions/3.5.3/linux.sh b/plugins/loki/versions/3.5.3/linux.sh index 281a9b547..f8ce04c3d 100644 --- a/plugins/loki/versions/3.5.3/linux.sh +++ b/plugins/loki/versions/3.5.3/linux.sh @@ -17,11 +17,11 @@ sysArch=`arch` sysName=`uname` ARCH_NAME=amd64 -if [ "$sysArch" == "arm64" ];then +if [ "$sysArch" = "arm64" ];then ARCH_NAME=arm64 -elif [ "$sysArch" == "x86_64" ]; then +elif [ "$sysArch" = "x86_64" ]; then ARCH_NAME=amd64 -elif [ "$sysArch" == "aarch64" ]; then +elif [ "$sysArch" = "aarch64" ]; then ARCH_NAME=aarch64 fi @@ -77,7 +77,7 @@ curl -v -H "Content-Type: application/json" -XPOST "http://localhost:3100/loki/ -d "{\"streams\": [{\"stream\": {\"test\": \"test\"}, \"values\": [[\"$timestamp\", \"test message\"]]}]}" action=${1} -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/manticoresearch/versions/apt/install.sh b/plugins/manticoresearch/versions/apt/install.sh index 4e1ca3380..09a094bf2 100755 --- a/plugins/manticoresearch/versions/apt/install.sh +++ b/plugins/manticoresearch/versions/apt/install.sh @@ -64,7 +64,7 @@ Uninstall_App() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/mysql-community/versions/8.0/install_generic.sh b/plugins/mysql-community/versions/8.0/install_generic.sh index f0debfa91..d6fbef7fc 100755 --- a/plugins/mysql-community/versions/8.0/install_generic.sh +++ b/plugins/mysql-community/versions/8.0/install_generic.sh @@ -57,7 +57,7 @@ Install_mysql() COMMUNITY_INSTALL - if [ "$?" == "0" ];then + if [ "$?" = "0" ];then mkdir -p $serverPath/mysql-community echo '8.0' > $serverPath/mysql-community/version.pl echo '安装完成' @@ -76,7 +76,7 @@ Uninstall_mysql() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_mysql else Uninstall_mysql diff --git a/plugins/mysql-community/versions/9.0/install_generic.sh b/plugins/mysql-community/versions/9.0/install_generic.sh index cdf5c915e..b446c04e0 100755 --- a/plugins/mysql-community/versions/9.0/install_generic.sh +++ b/plugins/mysql-community/versions/9.0/install_generic.sh @@ -73,7 +73,7 @@ Uninstall_mysql() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_mysql else Uninstall_mysql diff --git a/plugins/mysql/versions/9.3/install.sh b/plugins/mysql/versions/9.3/install.sh index eb5a3540e..0ee75f2e3 100755 --- a/plugins/mysql/versions/9.3/install.sh +++ b/plugins/mysql/versions/9.3/install.sh @@ -107,7 +107,7 @@ Install_mysql() md5_mysql_ok=acabc8aa764a94a8b10f90284c6e60c5 if [ -f ${mysqlDir}/mysql-${VERSION}.tar.gz ];then md5_mysql=`md5sum ${mysqlDir}/mysql-${VERSION}.tar.gz | awk '{print $1}'` - if [ "${md5_mysql_ok}" == "${md5_mysql}" ]; then + if [ "${md5_mysql_ok}" = "${md5_mysql}" ]; then echo "mysql9.3 file check ok" else # 重新下载 diff --git a/plugins/mysql/versions/9.4/install.sh b/plugins/mysql/versions/9.4/install.sh index 362e160a5..491fdfc21 100755 --- a/plugins/mysql/versions/9.4/install.sh +++ b/plugins/mysql/versions/9.4/install.sh @@ -132,7 +132,7 @@ Install_mysql() WHERE_DIR_GCC=/usr/bin/gcc WHERE_DIR_GPP=/usr/bin/g++ - if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then + if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then yum install -y libudev-devel yum install -y centos-release-scl yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils @@ -144,7 +144,7 @@ Install_mysql() echo $WHERE_DIR_GPP fi - if [ "$OSNAME" == "ubuntu" ];then + if [ "$OSNAME" = "ubuntu" ];then apt install -y libudev-dev apt install -y libtirpc-dev apt install -y libssl-dev diff --git a/plugins/op_waf/install.old.sh b/plugins/op_waf/install.old.sh index ea9ef2b3e..10812f087 100755 --- a/plugins/op_waf/install.old.sh +++ b/plugins/op_waf/install.old.sh @@ -134,7 +134,7 @@ Uninstall_App(){ action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index a24bd858b..26241315c 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -144,7 +144,7 @@ Install_openresty() cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz - if [ "$sysName" == "Darwin" ];then + if [ "$sysName" = "Darwin" ];then export ZSTD_INC=/opt/homebrew/include export ZSTD_LIB=/opt/homebrew/lib fi diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index bb4bdb28b..07c5a2c11 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -20,7 +20,7 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ "${action}" == "install" ];then + if [ "${action}" = "install" ];then if [ -d $serverPath/openresty ];then exit 0 fi @@ -210,9 +210,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "install" ];then +if [ "${1}" = "install" ];then Install_openresty -elif [ "${1}" == "upgrade" ];then +elif [ "${1}" = "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 380197fd0..d6d6264de 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,7 +20,7 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ "${action}" == "install" ];then + if [ "${action}" = "install" ];then if [ -d $serverPath/openresty ];then exit 0 fi @@ -219,9 +219,9 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == "install" ];then +if [ "${1}" = "install" ];then Install_openresty -elif [ "${1}" == "upgrade" ];then +elif [ "${1}" = "upgrade" ];then Install_openresty else Uninstall_openresty diff --git a/plugins/openresty/versions/rtmp/install.sh b/plugins/openresty/versions/rtmp/install.sh index eb8848b70..04b2f0818 100644 --- a/plugins/openresty/versions/rtmp/install.sh +++ b/plugins/openresty/versions/rtmp/install.sh @@ -75,7 +75,7 @@ Install_openresty() opensslVersion="3.4.4" libresslVersion="3.9.1" pcreVersion='8.45' - if [ "$sysName" == "Darwin" ];then + if [ "$sysName" = "Darwin" ];then if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz @@ -205,7 +205,7 @@ Uninstall_openresty() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_openresty else Uninstall_openresty diff --git a/plugins/php/install.sh b/plugins/php/install.sh index 54d7b1718..c4312f737 100755 --- a/plugins/php/install.sh +++ b/plugins/php/install.sh @@ -24,7 +24,7 @@ fi action=$1 type=$2 -if [ "${2}" == "" ];then +if [ "${2}" = "" ];then echo '缺少安装脚本...' exit 0 fi @@ -53,7 +53,7 @@ fi cd ${curPath} && sh -x $curPath/versions/$2/install.sh $1 -if [ "${action}" == "install" ] && [ -d ${serverPath}/php/${type} ];then +if [ "${action}" = "install" ] && [ -d ${serverPath}/php/${type} ];then #初始化 cd ${rootPath} && python3 ${rootPath}/plugins/php/index.py start ${type} diff --git a/plugins/php/lib/openssl_10.sh b/plugins/php/lib/openssl_10.sh index fdb536f93..608e11f60 100644 --- a/plugins/php/lib/openssl_10.sh +++ b/plugins/php/lib/openssl_10.sh @@ -17,7 +17,7 @@ SOURCE_ROOT=$rootPath/source/lib HTTP_PREFIX="https://" LOCAL_ADDR=common cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") -if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then +if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then LOCAL_ADDR=cn HTTP_PREFIX="https://mirror.ghproxy.com/" fi diff --git a/plugins/php/lib/zlib.sh b/plugins/php/lib/zlib.sh index 239e4d7c4..5fcc99b64 100644 --- a/plugins/php/lib/zlib.sh +++ b/plugins/php/lib/zlib.sh @@ -18,7 +18,7 @@ mkdir -p $SOURCE_ROOT HTTP_PREFIX="https://" LOCAL_ADDR=common cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") -if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then +if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then LOCAL_ADDR=cn HTTP_PREFIX="https://mirror.ghproxy.com/" fi @@ -28,7 +28,7 @@ if [ ! -d ${SERVER_ROOT}/zlib ];then cd $SOURCE_ROOT - if [ "$LOCAL_ADDR" == 'cn' ];then + if [ "$LOCAL_ADDR" = 'cn' ];then if [ ! -f ${SOURCE_ROOT}/${SOURCE_ROOT}/zlib-1.2.11.tar.gz ];then wget --no-check-certificate -O ${SOURCE_ROOT}/zlib-1.2.11.tar.gz https://dl.midoks.icu/lib/zlib-1.2.11.tar.gz -T 20 fi diff --git a/plugins/php/versions/52/gd.sh b/plugins/php/versions/52/gd.sh index 6251aa6c0..cf84d1d47 100755 --- a/plugins/php/versions/52/gd.sh +++ b/plugins/php/versions/52/gd.sh @@ -21,7 +21,7 @@ NON_ZTS_FILENAME=`ls $serverPath/php/${version}/lib/php/extensions | grep no-deb extFile=$serverPath/php/${version}/lib/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so sysName=`uname` -if [ "$sysName" == "Darwin" ];then +if [ "$sysName" = "Darwin" ];then BAK='_bak' else BAK='' diff --git a/plugins/php/versions/52/intl.sh b/plugins/php/versions/52/intl.sh index 803fbeba9..93804f74e 100755 --- a/plugins/php/versions/52/intl.sh +++ b/plugins/php/versions/52/intl.sh @@ -93,8 +93,8 @@ Uninstall_lib() } -if [ "$actionType" == 'install' ];then +if [ "$actionType" = 'install' ];then Install_lib -elif [ "$actionType" == 'uninstall' ];then +elif [ "$actionType" = 'uninstall' ];then Uninstall_lib fi \ No newline at end of file diff --git a/plugins/php/versions/52/memcache.sh b/plugins/php/versions/52/memcache.sh index f8cd093be..89dd1a1f1 100755 --- a/plugins/php/versions/52/memcache.sh +++ b/plugins/php/versions/52/memcache.sh @@ -21,7 +21,7 @@ version=$2 NON_ZTS_FILENAME=`ls $serverPath/php/${version}/lib/php/extensions | grep no-debug-non-zts` extFile=$serverPath/php/${version}/lib/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so -if [ "$sysName" == "Darwin" ];then +if [ "$sysName" = "Darwin" ];then BAK='_bak' else BAK='' @@ -87,8 +87,8 @@ Uninstall_lib() } -if [ "$actionType" == 'install' ];then +if [ "$actionType" = 'install' ];then Install_lib -elif [ "$actionType" == 'uninstall' ];then +elif [ "$actionType" = 'uninstall' ];then Uninstall_lib fi \ No newline at end of file diff --git a/plugins/php/versions/52/zendoptimizer.sh b/plugins/php/versions/52/zendoptimizer.sh index 787a3e498..fb0954ac3 100755 --- a/plugins/php/versions/52/zendoptimizer.sh +++ b/plugins/php/versions/52/zendoptimizer.sh @@ -97,8 +97,8 @@ Uninstall_lib() -if [ "$actionType" == 'install' ];then +if [ "$actionType" = 'install' ];then Install_lib -elif [ "$actionType" == 'uninstall' ];then +elif [ "$actionType" = 'uninstall' ];then Uninstall_lib fi \ No newline at end of file diff --git a/plugins/php/versions/common/redis.sh b/plugins/php/versions/common/redis.sh index 994f83a0f..4e9fbecc1 100755 --- a/plugins/php/versions/common/redis.sh +++ b/plugins/php/versions/common/redis.sh @@ -115,8 +115,8 @@ Uninstall_lib() -if [ "$actionType" == 'install' ];then +if [ "$actionType" = 'install' ];then Install_lib -elif [ "$actionType" == 'uninstall' ];then +elif [ "$actionType" = 'uninstall' ];then Uninstall_lib fi \ No newline at end of file diff --git a/plugins/php/versions/common/seaslog.sh b/plugins/php/versions/common/seaslog.sh index eb7d32c3f..1f33403d7 100755 --- a/plugins/php/versions/common/seaslog.sh +++ b/plugins/php/versions/common/seaslog.sh @@ -31,7 +31,7 @@ fi NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | grep no-debug-non-zts` extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${_LIBNAME}.so -if [ "$sysName" == "Darwin" ];then +if [ "$sysName" = "Darwin" ];then BAK='_bak' else BAK='' diff --git a/plugins/php/versions/common/sg11.sh b/plugins/php/versions/common/sg11.sh index 263319742..1ebb8d585 100644 --- a/plugins/php/versions/common/sg11.sh +++ b/plugins/php/versions/common/sg11.sh @@ -87,7 +87,7 @@ Install_lib() exit fi - if [ "$OSNAME" == 'macos' ];then + if [ "$OSNAME" = 'macos' ];then xattr -c * $extFile fi fi diff --git a/plugins/php/versions/common/sodium.sh b/plugins/php/versions/common/sodium.sh index 25cb6bc07..2a213488f 100755 --- a/plugins/php/versions/common/sodium.sh +++ b/plugins/php/versions/common/sodium.sh @@ -28,7 +28,7 @@ fi NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | grep no-debug-non-zts` extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so -if [ "$sysName" == "Darwin" ];then +if [ "$sysName" = "Darwin" ];then BAK='_bak' else BAK='' @@ -62,7 +62,7 @@ Install_lib() OPTIONS="" - if [ "$sysName" == "Darwin" ];then + if [ "$sysName" = "Darwin" ];then BREW_DIR=`which brew` BREW_DIR=${BREW_DIR/\/bin\/brew/} LIB_DEPEND_DIR=`brew info libsodium | grep ${BREW_DIR}/Cellar/libsodium | cut -d \ -f 1 | awk 'END {print}'` @@ -118,8 +118,8 @@ Uninstall_lib() } -if [ "$actionType" == 'install' ];then +if [ "$actionType" = 'install' ];then Install_lib -elif [ "$actionType" == 'uninstall' ];then +elif [ "$actionType" = 'uninstall' ];then Uninstall_lib fi \ No newline at end of file diff --git a/plugins/php/versions/common/solr.sh b/plugins/php/versions/common/solr.sh index da96ecd53..fa06b7603 100755 --- a/plugins/php/versions/common/solr.sh +++ b/plugins/php/versions/common/solr.sh @@ -59,7 +59,7 @@ Install_lib() cd $php_lib/${LIBNAME}-${LIBV} OPTIONS='' - if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then + if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi diff --git a/plugins/php/versions/common/swoole.sh b/plugins/php/versions/common/swoole.sh index c284423bd..93e0ad2cf 100755 --- a/plugins/php/versions/common/swoole.sh +++ b/plugins/php/versions/common/swoole.sh @@ -81,7 +81,7 @@ Install_lib() cd $php_lib/${LIBNAME}-${LIBV} OPTIONS="" - if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then + if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi diff --git a/plugins/php/versions/common/xdebug.sh b/plugins/php/versions/common/xdebug.sh index afe435ec7..f3e1024c2 100755 --- a/plugins/php/versions/common/xdebug.sh +++ b/plugins/php/versions/common/xdebug.sh @@ -17,7 +17,7 @@ sysName=`uname` actionType=$1 version=$2 -if [ "$version" == "85" ];then +if [ "$version" = "85" ];then echo "not need" exit 1 fi @@ -72,7 +72,7 @@ Install_lib() cd $php_lib/${LIBNAME}-${LIBV} OPTIONS="" - if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then + if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi diff --git a/plugins/php/versions/common/xhprof.sh b/plugins/php/versions/common/xhprof.sh index 63c1495be..ffad3ac31 100755 --- a/plugins/php/versions/common/xhprof.sh +++ b/plugins/php/versions/common/xhprof.sh @@ -29,7 +29,7 @@ fi NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | grep no-debug-non-zts` extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so -if [ "$sysName" == "Darwin" ];then +if [ "$sysName" = "Darwin" ];then BAK='_bak' else BAK='' @@ -56,7 +56,7 @@ Install_lib() cd $php_lib/${LIBNAME}-${LIBV}/extension OPTIONS='' - if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then + if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi diff --git a/plugins/php/versions/common/yaml.sh b/plugins/php/versions/common/yaml.sh index 57062b218..4143621c9 100755 --- a/plugins/php/versions/common/yaml.sh +++ b/plugins/php/versions/common/yaml.sh @@ -54,11 +54,11 @@ Install_lib() cd $php_lib/${LIBNAME}-${LIBV} OPTIONS='' - if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then + if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi - if [ $sysName == 'Darwin' ]; then + if [ $sysName = 'Darwin' ]; then BREW_DIR=`which brew` BREW_DIR=${BREW_DIR/\/bin\/brew/} LIB_DEPEND_DIR=`brew info libyaml | grep ${BREW_DIR}/Cellar/libyaml | cut -d \ -f 1 | awk 'END {print}'` diff --git a/plugins/php/versions/common/yar.sh b/plugins/php/versions/common/yar.sh index 348e1b976..e8c638c09 100755 --- a/plugins/php/versions/common/yar.sh +++ b/plugins/php/versions/common/yar.sh @@ -58,7 +58,7 @@ Install_lib() cd $php_lib/${LIBNAME}-${LIBV} OPTIONS='' - if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then + if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi