Default installer to clone git origin master

This commit is contained in:
Bryan Tidwell 2016-11-10 21:52:02 -06:00
parent fe96d19421
commit 661a124cfc

View File

@ -61,7 +61,8 @@ main() {
exit 1 exit 1
fi fi
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" printf "Error: git clone of oh-my-zsh repo failed\n"
exit 1 exit 1
} }