From 1bc5163d34c2259d45844cdf63806c6bf1e1392e Mon Sep 17 00:00:00 2001 From: Tom Klingenberg Date: Thu, 27 Jul 2017 00:47:43 +0200 Subject: [PATCH] mute first cd in win proxy stub for sh shell, fixes #6567 in the sh script, the first cd command did output the directory it cd'ed into did output the path itself. fix for me is to redirect it's standard output to /dev/null using git bash on a windows 10 box. w/o this fix, the workaround is to invoke the .bat file which is created as well (but this is not so handy as a non windows user for me). --- src/Composer/Installer/BinaryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index f0a724af9..266360d7e 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -194,7 +194,7 @@ class BinaryInstaller $proxyCode = << /dev/null; cd $binDir && pwd) # See if we are running in Cygwin by checking for cygpath program if command -v 'cygpath' >/dev/null 2>&1; then