From bdfd83d30b1a301b1d3f94094db4b5f1e6f10149 Mon Sep 17 00:00:00 2001 From: Rati Wannapanop Date: Mon, 1 Jun 2015 18:14:29 +0000 Subject: [PATCH] fix displaying different backup destination filename --- src/Commands/BackupCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Commands/BackupCommand.php b/src/Commands/BackupCommand.php index 4a0eb81f..b450c810 100644 --- a/src/Commands/BackupCommand.php +++ b/src/Commands/BackupCommand.php @@ -216,9 +216,11 @@ public function copyFileToFileSystem($file, $fileSystem) $disk = Storage::disk($fileSystem); - $this->copyFile($file, $disk, $this->getBackupDestinationFileName(), $fileSystem == 'local'); + $destBackupFilename = $this->getBackupDestinationFileName(); - $this->comment('Backup stored on '.$fileSystem.'-filesystem in file "'.$this->getBackupDestinationFileName().'"'); + $this->copyFile($file, $disk, $destBackupFilename, $fileSystem == 'local'); + + $this->comment('Backup stored on '.$fileSystem.'-filesystem in file "'.$destBackupFilename.'"'); } /**