1
0
Fork 0

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).
pull/6568/head
Tom Klingenberg 2017-07-27 00:47:43 +02:00
parent 189ba423ae
commit 1bc5163d34
1 changed files with 1 additions and 1 deletions

View File

@ -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