소스 검색

also clean up *.bat files

Mateusz Heleniak 13 년 전
부모
커밋
924d39f405
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/Composer/Installer/LibraryInstaller.php

+ 5 - 3
src/Composer/Installer/LibraryInstaller.php

@@ -226,10 +226,12 @@ class LibraryInstaller implements InstallerInterface
         }
         foreach ($binaries as $bin) {
             $link = $this->binDir.'/'.basename($bin);
-            if (!file_exists($link)) {
-                continue;
+            if (file_exists($link)) {
+                unlink($link);
+            }
+            if (file_exists($link.'.bat')) {
+                unlink($link.'.bat');
             }
-            unlink($link);
         }
     }