From 661a124cfc5a1e17c80f4b529927741a3b8019df Mon Sep 17 00:00:00 2001 From: Bryan Tidwell Date: Thu, 10 Nov 2016 21:52:02 -0600 Subject: [PATCH] Default installer to clone git origin master --- tools/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 3f4de8681..104a6e630 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -61,7 +61,8 @@ main() { exit 1 fi fi - env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || { + # if running from the git repo use git's origin + [-d .git]&& env git clone --depth=1 origin master || 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 }