From 8614abaa5bce495b47ecf1ff0216d62c136401e1 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 13 May 2020 11:43:11 +0200 Subject: 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(-) (limited to 'composer.json') diff --git a/composer.json b/composer.json index 937df706202..fb6cd010889 100644 --- a/composer.json +++ b/composer.json @@ -22,6 +22,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" } } -- cgit v1.2.3