Fix handling spaces in $ZSH

the $ZSH variable has a problem with PATHs having spaces in them.

eg: automatic cloning to /home/Michael Wilcox/.oh-my-zsh
fails due to the variable being set to /home/Michael

This fixes the problem.
(Tested on [Cygwin](http://www.starlig.ht))
This commit is contained in:
Michael Rene Wilcox 2017-04-11 14:55:55 +05:30 committed by GitHub
commit 2c3e2904b2

View file

@ -61,7 +61,7 @@ main() {
exit 1
fi
fi
env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git "$ZSH" || {
printf "Error: git clone of oh-my-zsh repo failed\n"
exit 1
}