瀏覽代碼

Capture output of the rm command

Jordi Boggiano 12 年之前
父節點
當前提交
1dd7700fc2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Util/Filesystem.php

+ 1 - 1
src/Composer/Util/Filesystem.php

@@ -66,7 +66,7 @@ class Filesystem
             $cmd = sprintf('rm -rf %s', escapeshellarg($directory));
         }
 
-        $result = $this->getProcess()->execute($cmd) === 0;
+        $result = $this->getProcess()->execute($cmd, $output) === 0;
 
         // clear stat cache because external processes aren't tracked by the php stat cache
         clearstatcache();