Explorar o código

fixed generated windows proxy file for *.exe

Mateusz Heleniak %!s(int64=12) %!d(string=hai) anos
pai
achega
4e638009ab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 1
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');