diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php
index <HASH>..<HASH> 100644
--- a/src/Composer/Util/ProcessExecutor.php
+++ b/src/Composer/Util/ProcessExecutor.php
@@ -71,6 +71,8 @@ class ProcessExecutor
 
     public function splitLines($output)
     {
+        $output = trim($output);
+
         return ((string) $output === '') ? array() : preg_split('{\r?\n}', $output);
     }
Trim output before splitting lines to avoid blank entries, closes #<I>