mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 12:39:36 +01:00
fix confirm
This commit is contained in:
parent
8aa23ccc97
commit
3eba089c47
@ -30,7 +30,10 @@ class UninstallPluginCommand extends Command
|
||||
return;
|
||||
}
|
||||
|
||||
$deleteFiles = $this->option('delete') ?? $this->confirm('Do you also want to delete the plugin files?');
|
||||
$deleteFiles = $this->option('delete');
|
||||
if ($this->input->isInteractive() && !$deleteFiles) {
|
||||
$deleteFiles = $this->confirm('Do you also want to delete the plugin files?');
|
||||
}
|
||||
|
||||
Plugins::uninstallPlugin($plugin, $deleteFiles);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user