Skip to content

Commit e93ab62

Browse files
authored
Merge pull request #51 from filamentphp/3.x
Fix: windows based grep
2 parents bc30f0e + aab6b3f commit e93ab62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ function replaceForWindows(): array
347347

348348
function replaceForAllOtherOSes(): array
349349
{
350-
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__)));
350+
return explode(PHP_EOL, run('find ./* ./.github/* -name "vendor" -type d -prune \
351+
-o -name "configure.php" -prune \
352+
-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]"'));
351353
}
352354

353355
function removeDirectory($dir): void

0 commit comments

Comments
 (0)