This commit is contained in:
Bryan 2018-06-12 21:19:40 +00:00 committed by GitHub
commit 398710650b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,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
}