Skip to content

Commit

Permalink
Merge pull request #44 from darmshot/patch-2
Browse files Browse the repository at this point in the history
fix: remove grep --exclude-dir option
  • Loading branch information
awcodes authored Dec 13, 2023
2 parents 41cc812 + b839275 commit aab6b3f
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 aab6b3f

Please sign in to comment.