From 16567c6b2b0efeb8f0f2853464244462987a907f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 1 Mar 2017 18:46:17 +0100 Subject: [PATCH] Do not rely on xargs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It does not work as expected on OSX. Signed-off-by: Michal Čihař --- test/ci-lint | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/ci-lint b/test/ci-lint index 12ee34618a..dcff05f4e6 100755 --- a/test/ci-lint +++ b/test/ci-lint @@ -1,7 +1,11 @@ #!/bin/sh if [ -z "$TRAVIS_COMMIT_RANGE" ] ; then - find . -name '*.php' -not -path './vendor/*' | xargs -n1 -r php -l + FILES=`find . -name '*.php' -not -path './vendor/*'` else - git diff --name-only $TRAVIS_COMMIT_RANGE -- '*.php' | xargs -n1 -r php -l + FILES=`git diff --name-only $TRAVIS_COMMIT_RANGE -- '*.php'` fi + +for FILE in FILES ; do + php -l $FILE +done