diff --git a/tools/run_tests/helper_scripts/build_php.sh b/tools/run_tests/helper_scripts/build_php.sh index 856e5b6865d..443be34fa0c 100755 --- a/tools/run_tests/helper_scripts/build_php.sh +++ b/tools/run_tests/helper_scripts/build_php.sh @@ -18,9 +18,9 @@ set -ex CONFIG=${CONFIG:-opt} # change to grpc repo root -cd $(dirname $0)/../../.. +cd "$(dirname "$0")/../../.." -root=`pwd` +root=$(pwd) export GRPC_LIB_SUBDIR=libs/$CONFIG export CFLAGS="-Wno-parentheses-equality" @@ -30,8 +30,8 @@ cd src/php cd ext/grpc phpize if [ "$CONFIG" != "gcov" ] ; then - ./configure --enable-grpc=$root + ./configure --enable-grpc="$root" else - ./configure --enable-grpc=$root --enable-coverage + ./configure --enable-grpc="$root" --enable-coverage fi make