Improved non-interactive command support (#1824)

The following commands no longer need confirmation when the input is not interactive:

 - server:bulk-power
 - server:reinstall
This commit is contained in:
SmokingIsBadMkay 2020-02-08 22:30:49 +01:00 committed by GitHub
parent f9ec96c70a
commit bf6da15fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class BulkReinstallActionCommand extends Command
{
$servers = $this->getServersToProcess();
if (! $this->confirm(trans('command/messages.server.reinstall.confirm'))) {
if (! $this->confirm(trans('command/messages.server.reinstall.confirm')) && $this->input->isInteractive()) {
return;
}