Skip to content

Commit 8614aba

Browse files
committed
Respect exit code of lint run - changed from -exec to xargs as this exits properly
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent c6da7ec commit 8614aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"scripts": {
2323
"cs:fix": "php-cs-fixer fix",
2424
"cs:check": "php-cs-fixer fix --dry-run --diff",
25-
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/.phan/*' -exec php -l \"{}\" \\;"
25+
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/.phan/*' -print0 | xargs -0 -n1 php -l"
2626
}
2727
}

0 commit comments

Comments
 (0)