diff --git a/plugins/php/versions/common/memcached.sh b/plugins/php/versions/common/memcached.sh index 864703ab8..93f3682a3 100755 --- a/plugins/php/versions/common/memcached.sh +++ b/plugins/php/versions/common/memcached.sh @@ -61,7 +61,8 @@ Install_lib() OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu" fi - if ! pkg-config --exists libmemcached; then + pkg-config --exists libmemcached + if [ "$?" != "0" ]; then cd ${rootPath}/plugins/php/lib && /bin/bash libmemcached.sh OPTIONS="$OPTIONS --with-libmemcached-dir=${serverPath}/lib/libmemcached" fi