From b212209af521ee5b4dbadb098c3c5b7e05535291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BCrk?= Date: Tue, 7 May 2024 15:14:57 +0200 Subject: [PATCH] [TASK] Use only busybox compatible `find` options (#1290) `find` has different options in different operating system implementations (gnu, macosx, busybox, ...). This change modies the used find command and replace `-regextype` and `-regex` for multiple file extension for `ci:yaml:lint` composer script. Note: That unblocks the ability to revert to the TYPO3 core-testing-* images and avoid 3rd party extended images installing `gnu find`. Resolves: #1209 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a1f464f..542f331 100644 --- a/composer.json +++ b/composer.json @@ -162,7 +162,7 @@ "ci:tests:unit": ".Build/bin/phpunit -c ./Configuration/UnitTests.xml Tests/Unit", "ci:ts:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript", "ci:xliff:lint": "php Build/bin/console lint:xliff Resources/Private/Language", - "ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -regextype egrep -regex '.*.ya?ml$' | xargs -r php ./.Build/bin/yaml-lint", + "ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' \\( -name '*.yaml' -o -name '*.yml' \\) | xargs -r php ./.Build/bin/yaml-lint", "coverage:create-directories": "mkdir -p .Build/logs .Build/coverage", "docs:generate": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation", "fix:composer:normalize": "@composer normalize --no-check-lock",