Skip to content

Commit

Permalink
Fixed installer replacing multiple new lines in 3rd party files.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Feb 1, 2025
1 parent 72daee2 commit 5e72234
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .vortex/installer/src/Traits/PromptsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ protected function processEnableCommentedCode(string $dir): void {
}

protected function processEmptyLines(string $dir): void {
$files = File::scandirRecursive($dir, File::ignorePaths());
$ignore = array_merge(File::ignorePaths(), [
'/web/sites/default/default.settings.php',
'/web/sites/default/default.services.yml',
'/.docker/config/solr/config-set/',
]);

$files = File::scandirRecursive($dir, $ignore);
foreach ($files as $filename) {
File::fileReplaceContent('/(\n\s*\n)+/', "\n\n", $filename);
}
Expand Down

1 comment on commit 5e72234

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.