Allow october:fresh to remove remove the demo plugin even when the demo theme has already been removed (#5275)
This commit is contained in:
parent
dca6128501
commit
fc9d6233a8
|
|
@ -37,16 +37,24 @@ class OctoberFresh extends Command
|
|||
}
|
||||
|
||||
$demoThemePath = themes_path().'/demo';
|
||||
|
||||
if (File::exists($demoThemePath)) {
|
||||
Artisan::call('plugin:remove', ['name' => 'October.Demo', '--force' => true]);
|
||||
File::deleteDirectory($demoThemePath);
|
||||
|
||||
$this->info('Demo has been removed! Enjoy a fresh start.');
|
||||
$this->info('Demo theme has been removed! Enjoy a fresh start.');
|
||||
}
|
||||
else {
|
||||
$this->error('Demo theme is already removed.');
|
||||
}
|
||||
|
||||
$demoPluginPath = plugins_path().'/october/demo';
|
||||
if (File::exists($demoPluginPath)) {
|
||||
Artisan::call('plugin:remove', ['name' => 'October.Demo', '--force' => true]);
|
||||
|
||||
$this->info('Demo plugin has been removed! Enjoy a fresh start.');
|
||||
}
|
||||
else {
|
||||
$this->error('Demo plugin is already removed.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue