Skip to content

Commit 6bfb4d5

Browse files
Merge pull request #348 from nextcloud/fix/noid/composer-lint-command-exit-code
Use proper exit code for composer lint
2 parents 796e7e5 + a15678d commit 6bfb4d5

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
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"cs:check": "php-cs-fixer fix --dry-run --diff",
1919
"cs:fix": "php-cs-fixer fix",
20-
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;",
20+
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
2121
"test": "phpunit -c tests/phpunit.xml",
2222
"test:unit": "phpunit -c tests/phpunit.xml tests/Unit",
2323
"test:unit:dev": "phpunit -c tests/phpunit.xml tests/Unit --no-coverage"

0 commit comments

Comments
 (0)