]> source.dussan.org Git - nextcloud-server.git/commitdiff
Respect exit code of lint run - changed from -exec to xargs as this exits properly
authorMorris Jobke <hey@morrisjobke.de>
Wed, 13 May 2020 09:43:11 +0000 (11:43 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 13 May 2020 10:52:52 +0000 (12:52 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
composer.json

index 937df706202fbd5d2ef9d97db21228e45a5eae0e..fb6cd010889d32657b2be4926aa34fe2f7e77ee1 100644 (file)
@@ -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"
     }
 }