Skip to content

Commit

Permalink
Fixes #3127: Non-interactive invoke via 'drush @alias cmd' (#3407)
Browse files Browse the repository at this point in the history
* Fixes #3127: Non-interactive invoke via 'drush @alias cmd'

* Always use 'interactive' mode when redispatching (yes, even in 'non-interactive' mode, sigh).
  • Loading branch information
greg-1-anderson authored Feb 21, 2018
1 parent 757999b commit 901e190
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Runtime/RedispatchHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ public function redispatch(InputInterface $input)
// in $redispatchArgs.
$redispatchOptions = [];

// n.b. Defining the 'backend' flag here causes failed execution in the
// non-interactive case, even if 'backend' is set to 'false'.
$backend_options = [
'drush-script' => $this->getConfig()->get('paths.drush-script', null),
'remote-host' => $remote_host,
'remote-user' => $remote_user,
'additional-global-options' => [],
'integrate' => true,
'backend' => false,
'interactive' => true,
];
if ($input->isInteractive()) {
$backend_options['#tty'] = true;
Expand Down

0 comments on commit 901e190

Please sign in to comment.