From d79909dec4831c654e09b9cc241c16062d036c0a Mon Sep 17 00:00:00 2001 From: Jonathan Hedstrom Date: Sun, 21 Feb 2016 11:44:24 -0800 Subject: [PATCH] Merge pull request #77 from lmakarov/master Fix drush nocolor option Signed-off-by: Jonathan Hedstrom --- src/Drupal/Driver/DrushDriver.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Drupal/Driver/DrushDriver.php b/src/Drupal/Driver/DrushDriver.php index 3890418a..67de00cc 100644 --- a/src/Drupal/Driver/DrushDriver.php +++ b/src/Drupal/Driver/DrushDriver.php @@ -229,7 +229,9 @@ protected static function parseArguments(array $arguments) { */ public function drush($command, array $arguments = array(), array $options = array()) { $arguments = implode(' ', $arguments); - $options['nocolor'] = ''; + + // Disable colored output from drush + $options['nocolor'] = TRUE; $string_options = $this->parseArguments($options); $alias = isset($this->alias) ? "@{$this->alias}" : '--root=' . $this->root; @@ -237,7 +239,7 @@ public function drush($command, array $arguments = array(), array $options = arr // Add any global arguments. $global = $this->getArguments(); - $process = new Process("{$this->binary} {$alias} {$global} {$command} {$string_options} {$arguments}"); + $process = new Process("{$this->binary} {$alias} {$string_options} {$global} {$command} {$arguments}"); $process->setTimeout(3600); $process->run();