Skip to content

Commit

Permalink
Fix site:install mistake during phpstan updates (#5998)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed May 10, 2024
1 parent fdb6ea0 commit e30938f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/core/SiteInstallCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ public function pre(CommandData $commandData): void

// Can't install without sites subdirectory and settings.php.
if (!file_exists($confPath)) {
(new Filesystem())->mkdir($confPath);
if (!$this->getConfig()->simulate()) {
throw new \Exception(dt('Failed to create directory @confPath', ['@confPath' => $confPath]));
$fs = new Filesystem();
$fs->mkdir($confPath);
}
} else {
$this->logger()->info(dt('Sites directory @subdir already exists - proceeding.', ['@subdir' => $confPath]));
Expand Down

0 comments on commit e30938f

Please sign in to comment.