Browse Source

Capture output

Jordi Boggiano 8 years ago
parent
commit
685ff8699b
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/Composer/Command/HomeCommand.php

+ 5 - 5
src/Composer/Command/HomeCommand.php

@@ -120,16 +120,16 @@ EOT
 
         $process = new ProcessExecutor($this->getIO());
         if (Platform::isWindows()) {
-            return $process->execute('start "web" explorer "' . $url . '"');
+            return $process->execute('start "web" explorer "' . $url . '"', $output);
         }
 
-        $linux = $process->execute('which xdg-open');
-        $osx = $process->execute('which open');
+        $linux = $process->execute('which xdg-open', $output);
+        $osx = $process->execute('which open', $output);
 
         if (0 === $linux) {
-            $process->execute('xdg-open ' . $url);
+            $process->execute('xdg-open ' . $url, $output);
         } elseif (0 === $osx) {
-            $process->execute('open ' . $url);
+            $process->execute('open ' . $url, $output);
         } else {
             $this->getIO()->writeError('No suitable browser opening command found, open yourself: ' . $url);
         }