Преглед на файлове

Merge pull request #1088 from mheleniak/bat_file_fix

fixed generated windows proxy file for *.exe
Jordi Boggiano преди 12 години
родител
ревизия
a589a47468
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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');