From 924d39f40580ad2525f113efb0de47dc897092a4 Mon Sep 17 00:00:00 2001 From: Mateusz Heleniak Date: Sat, 1 Sep 2012 17:43:16 +0200 Subject: [PATCH] also clean up *.bat files --- src/Composer/Installer/LibraryInstaller.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 137b38464..9b1387ac6 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/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); } }