diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 5bbba4815..5ec3ccce0 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -227,7 +227,7 @@ class LibraryInstaller implements InstallerInterface } foreach ($binaries as $bin) { $link = $this->binDir.'/'.basename($bin); - if (file_exists($link)) { + if (is_link($link) || file_exists($link)) { unlink($link); } if (file_exists($link.'.bat')) {