From 2c3e2904b28fd4fb18b0228bedc1c6886aa1dfb5 Mon Sep 17 00:00:00 2001 From: Michael Rene Wilcox Date: Tue, 11 Apr 2017 14:55:55 +0530 Subject: [PATCH] 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)) --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 3f4de8681..5299e9755 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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 }