mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 22:49:41 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
3429d1f4b4
|
@ -11,7 +11,7 @@ class SystemBackup extends Command
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = 'snipeit:backup';
|
||||
protected $signature = 'snipeit:backup {--filename=}';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
|
@ -37,7 +37,11 @@ class SystemBackup extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
//
|
||||
$this->call('backup:run');
|
||||
if ($this->option('filename')) {
|
||||
$this->call('backup:run', ['--filename' => $this->option('filename')]);
|
||||
} else {
|
||||
$this->call('backup:run');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue