From 51d4c930ef14e545961d38722887db57b7981a23 Mon Sep 17 00:00:00 2001 From: Jos Date: Tue, 23 Feb 2016 19:02:52 +0100 Subject: [PATCH] Fix for cygwin if $dir contains spaces Without the quotes cygpath will interpret the filename (containing spaces) as two or more different files. This results in the value of $dir being incorrect. --- src/Composer/Installer/LibraryInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index e3cd6bd9b..25deef904 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -356,7 +356,7 @@ if command -v 'cygpath' >/dev/null 2>&1; then # we could be using cygwin PHP which does not require this, so we # test if the path to PHP starts with /cygdrive/ rather than /usr/bin if [[ $(which php) == /cygdrive/* ]]; then - dir=$(cygpath -m \$dir); + dir=$(cygpath -m "\$dir"); fi fi