replace backticks with $()

pull/2203/head
Stanley Cheung 10 years ago
parent c865c318e4
commit 229e8553a6
  1. 6
      src/php/bin/determine_extension_dir.sh
  2. 4
      src/php/bin/run_gen_code_test.sh
  3. 2
      src/php/bin/run_tests.sh

@ -29,10 +29,10 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set -e set -e
default_extension_dir=`php -i | grep extension_dir | sed 's/.*=> //g'` default_extension_dir=$(php -i | grep extension_dir | sed 's/.*=> //g')
if command -v brew >/dev/null && [ -d `brew --prefix`/opt/grpc-php ]; then if command -v brew >/dev/null && [ -d $(brew --prefix)/opt/grpc-php ]; then
# homebrew and the grpc-php formula are installed # homebrew and the grpc-php formula are installed
extension_dir="-d extension_dir="`brew --prefix`/opt/grpc-php extension_dir="-d extension_dir="$(brew --prefix)/opt/grpc-php
elif [ ! -f $default_extension_dir/grpc.so ]; then elif [ ! -f $default_extension_dir/grpc.so ]; then
# the grpc extension is not found in the default PHP extension dir # the grpc extension is not found in the default PHP extension dir
# try the source modules directory # try the source modules directory

@ -32,7 +32,7 @@ set -e
cd $(dirname $0) cd $(dirname $0)
source ./determine_extension_dir.sh source ./determine_extension_dir.sh
export GRPC_TEST_HOST=localhost:7071 export GRPC_TEST_HOST=localhost:7071
php $extension_dir -d extension=grpc.so `which phpunit` -v --debug --strict \ php $extension_dir -d extension=grpc.so $(which phpunit) -v --debug --strict \
../tests/generated_code/GeneratedCodeTest.php ../tests/generated_code/GeneratedCodeTest.php
php $extension_dir -d extension=grpc.so `which phpunit` -v --debug --strict \ php $extension_dir -d extension=grpc.so $(which phpunit) -v --debug --strict \
../tests/generated_code/GeneratedCodeWithCallbackTest.php ../tests/generated_code/GeneratedCodeWithCallbackTest.php

@ -33,5 +33,5 @@
set -e set -e
cd $(dirname $0) cd $(dirname $0)
source ./determine_extension_dir.sh source ./determine_extension_dir.sh
php $extension_dir -d extension=grpc.so `which phpunit` -v --debug --strict \ php $extension_dir -d extension=grpc.so $(which phpunit) -v --debug --strict \
../tests/unit_tests ../tests/unit_tests

Loading…
Cancel
Save