Parcourir la source

Merge pull request #6568 from ktomk/patch-windows-bin-proxy-stubs

mute first cd in win proxy stub for sh shell, fixes #6567
Jordi Boggiano il y a 7 ans
Parent
commit
a3c15d06e4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Composer/Installer/BinaryInstaller.php

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

@@ -194,7 +194,7 @@ class BinaryInstaller
         $proxyCode = <<<PROXY
         $proxyCode = <<<PROXY
 #!/usr/bin/env sh
 #!/usr/bin/env sh
 
 
-dir=$(d=\${0%[/\\\\]*}; cd "\$d"; cd $binDir && pwd)
+dir=$(d=\${0%[/\\\\]*}; cd "\$d" > /dev/null; 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