diff --git a/plugins/php/versions/common/gd.sh b/plugins/php/versions/common/gd.sh index 3991c56eb..8c97fab04 100755 --- a/plugins/php/versions/common/gd.sh +++ b/plugins/php/versions/common/gd.sh @@ -23,7 +23,7 @@ OSNAME=`cat ${rootPath}/data/osname.pl` OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` -if [ "centos" == "$OSNAME" ] || [ "$OSNAME_ID" != "9" ];then +if [ "centos" == "$OSNAME" ] && [ "$OSNAME_ID" != "9" ];then if [ "$version" -lt "74" ];then bash $curPath/gd_old.sh $1 $2 exit 0