Skip to content

Commit 0bcc1b1

Browse files
author
Perttu Ehn
committed
Keep the overwritten file
1 parent 21ad988 commit 0bcc1b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Command/Database/DumpCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
137137
$file)
138138
)
139139
);
140-
unlink($file);
140+
if($resultFile != $file) {
141+
unlink($file);
142+
}
141143
}
142144

143145
$io->success(

0 commit comments

Comments
 (0)