diff --git a/src/Console/Command/MysqlRestore.php b/src/Console/Command/MysqlRestore.php index 21610c0..287461d 100644 --- a/src/Console/Command/MysqlRestore.php +++ b/src/Console/Command/MysqlRestore.php @@ -227,7 +227,7 @@ protected function setFilename($input, $output) } else { $selectedFiles = []; foreach ($this->backupFileNames as $index => $backupFileName) { - if (ends_with($backupFileName, '_' . $this->connection['database'] . '.sql') || ends_with($backupFileName, '_' . $this->connection['database'] . 'sql.gz')) { + if (ends_with($backupFileName, '_' . $this->connection['database'] . '.sql') || ends_with($backupFileName, '_' . $this->connection['database'] . '.sql.gz')) { array_push($this->backupFileAlternatives, $backupFileName); array_push($selectedFiles, $this->backupFiles[$index]); }