From ffb4d54bc07bad5713abd0d73e952cf14cb1d2f2 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 13 May 2020 11:43:11 +0200 Subject: [PATCH] Respect exit code of lint run - changed from -exec to xargs as this exits properly Signed-off-by: Morris Jobke --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ee73b60f43..ccc12ed3f4 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,6 @@ "scripts": { "cs:fix": "php-cs-fixer fix", "cs:check": "php-cs-fixer fix --dry-run --diff", - "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/.phan/*' -exec php -l \"{}\" \\;" + "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/.phan/*' -print0 | xargs -0 -n1 php -l" } }