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.pull/4952/head
parent
fa572f3452
commit
51d4c930ef
|
@ -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
|
# 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
|
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
|
||||||
if [[ $(which php) == /cygdrive/* ]]; then
|
if [[ $(which php) == /cygdrive/* ]]; then
|
||||||
dir=$(cygpath -m \$dir);
|
dir=$(cygpath -m "\$dir");
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue