Skip to content

Commit

Permalink
Fixes #3127: Non-interactive invoke via 'drush @alias cmd'
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Feb 21, 2018
1 parent acf3798 commit 13a4d00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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,
];
if ($input->isInteractive()) {
$backend_options['#tty'] = true;
Expand Down

0 comments on commit 13a4d00

Please sign in to comment.