1
0
Fork 0

Make unix proxies work with spaces in paths

pull/915/merge
Jordi Boggiano 2012-11-01 17:17:47 +01:00
parent f8ce52dc7a
commit 6206d0bc9c
1 changed files with 5 additions and 5 deletions

View File

@ -274,11 +274,11 @@ class LibraryInstaller implements InstallerInterface
$binPath = $this->filesystem->findShortestPath($link, $bin); $binPath = $this->filesystem->findShortestPath($link, $bin);
return "#!/usr/bin/env sh\n". return "#!/usr/bin/env sh\n".
'SRC_DIR=`pwd`'."\n". 'SRC_DIR="`pwd`"'."\n".
'cd `dirname "$0"`'."\n". 'cd "`dirname "$0"`"'."\n".
'cd '.escapeshellarg(dirname($binPath))."\n". 'cd '.escapeshellarg(dirname($binPath))."\n".
'BIN_TARGET=`pwd`/'.basename($binPath)."\n". 'BIN_TARGET="`pwd`/'.basename($binPath)."\"\n".
'cd $SRC_DIR'."\n". 'cd "$SRC_DIR"'."\n".
'$BIN_TARGET "$@"'."\n"; '"$BIN_TARGET" "$@"'."\n";
} }
} }