Jordi Boggiano 9 лет назад
Родитель
Сommit
ebe0c8d79c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 1
src/Composer/Installer/LibraryInstaller.php

@@ -316,7 +316,7 @@ class LibraryInstaller implements InstallerInterface
         $proxyCode = <<<PROXY
         $proxyCode = <<<PROXY
 #!/usr/bin/env sh
 #!/usr/bin/env sh
 
 
-dir=$(d=$(dirname "$0"); cd "\$d"; cd $binDir && pwd)
+dir=$(d=\${0%[/\\\\]*}; cd "\$d"; cd $binDir && pwd)
 
 
 # See if we are running in Cygwin by checking for cygpath program
 # See if we are running in Cygwin by checking for cygpath program
 if command -v 'cygpath' >/dev/null 2>&1; then
 if command -v 'cygpath' >/dev/null 2>&1; then