Skip to content

Commit

Permalink
fix: remove grep --exclude-dir option
Browse files Browse the repository at this point in the history
  • Loading branch information
darmshot authored Sep 26, 2023
1 parent a981417 commit b839275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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|[email protected]" --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|[email protected]"'));
}

function removeDirectory($dir): void
Expand Down

0 comments on commit b839275

Please sign in to comment.