From 4e638009ab46b5b6980ccdcc816325e0098b3f2e Mon Sep 17 00:00:00 2001 From: Mateusz Heleniak Date: Sat, 8 Sep 2012 16:44:11 +0200 Subject: [PATCH] fixed generated windows proxy file for *.exe --- src/Composer/Installer/LibraryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 9b1387ac6..bac6bdf31 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -250,7 +250,7 @@ class LibraryInstaller implements InstallerInterface protected function generateWindowsProxyCode($bin, $link) { $binPath = $this->filesystem->findShortestPath($link, $bin); - if ('.bat' === substr($bin, -4)) { + if ('.bat' === substr($bin, -4) || '.exe' === substr($bin, -4)) { $caller = 'call'; } else { $handle = fopen($bin, 'r');