Skip to content

Commit

Permalink
3948 backup file check (#3953)
Browse files Browse the repository at this point in the history
* Remove missing variable

* Add check of the file

* Add check of the backupfile

* Remove the file, it was committed accidentally
  • Loading branch information
LOBsTerr authored Apr 10, 2019
1 parent efe17e2 commit 75f5784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Database/RestoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$learning = $input->getOption('learning');

$databaseConnection = $this->escapeConnection($this->resolveConnection($database, $target));
if (!$file) {
if (!$file || !file_exists($file)) {
$this->getIo()->error(
$this->trans('commands.database.restore.messages.no-file')
);
Expand Down

0 comments on commit 75f5784

Please sign in to comment.