Skip to content

Commit 17a11ca

Browse files
committed
fix: delete existing project configuration during project initialization
1 parent fcdf940 commit 17a11ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Command/Project/InitializeProjectCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ protected function perform(InputInterface $input, ConsoleOutput $output)
116116
&& !$output->confirm('A project already exists in this directory. Do you want to overwrite it?', false)
117117
) {
118118
return;
119+
} elseif ($this->projectConfiguration->exists()) {
120+
$this->projectConfiguration->delete();
119121
}
120122

121123
$this->retryApi(function () use ($input, $output) {

0 commit comments

Comments
 (0)