Merge pull request #20960 from nextcloud/backport/20952/stable19

[stable19] Respect exit code of lint run - changed from -exec to xargs as this e…
This commit is contained in:
Roeland Jago Douma 2020-05-14 08:09:04 +02:00 committed by GitHub
commit 60fd1a30b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}
}