mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 13:38:53 +08:00
Merge pull request #44 from darmshot/patch-2
fix: remove grep --exclude-dir option
This commit is contained in:
@@ -347,7 +347,9 @@ function replaceForWindows(): array
|
|||||||
|
|
||||||
function replaceForAllOtherOSes(): 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
|
function removeDirectory($dir): void
|
||||||
|
|||||||
Reference in New Issue
Block a user