Skip to content

Commit

Permalink
Merge pull request #51 from filamentphp/3.x
Browse files Browse the repository at this point in the history
Fix: windows based grep
  • Loading branch information
awcodes authored Dec 13, 2023
2 parents bc30f0e + aab6b3f commit e93ab62
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 e93ab62

Please sign in to comment.