From b839275efb4d72fa678d0831efe608bd879962f8 Mon Sep 17 00:00:00 2001 From: Stas Date: Wed, 27 Sep 2023 00:08:14 +0300 Subject: [PATCH] fix: remove grep --exclude-dir option --- configure.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.php b/configure.php index 6f47486..2fe336e 100644 --- a/configure.php +++ b/configure.php @@ -347,7 +347,9 @@ function replaceForWindows(): array function replaceForAllOtherOSes(): array { - return explode(PHP_EOL, run('grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|author@domain.com" --exclude-dir=vendor ./* ./.github/* | grep -v ' . basename(__FILE__))); + return explode(PHP_EOL, run('find ./* ./.github/* -name "vendor" -type d -prune \ + -o -name "configure.php" -prune \ + -o -type f -print0 | xargs -0 grep -E -r -l -i ":author|:vendor|:package|VendorName|skeleton|migration_table_name|vendor_name|vendor_slug|author@domain.com"')); } function removeDirectory($dir): void