Browse Source

Clean up temp dir

Jordi Boggiano 13 năm trước cách đây
mục cha
commit
fd93f6d648
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/Composer/IO/ConsoleIO.php

+ 5 - 0
src/Composer/IO/ConsoleIO.php

@@ -141,6 +141,11 @@ class ConsoleIO implements IOInterface
             $value = rtrim(shell_exec($exe));
             $this->write('');
 
+            // clean up
+            if (isset($tmpExe)) {
+                unlink($tmpExe);
+            }
+
             return $value;
         }