More compatible with older git versions

This commit is contained in:
Simon Pettersson 2017-10-06 09:33:40 +02:00 committed by GitHub
parent eab7ff26cf
commit 66c2f5ccc3

View File

@ -68,7 +68,7 @@ main() {
exit 1 exit 1
fi fi
env git clone --depth=1 $(git remote get-url origin) -b "$branch" $ZSH || { env git clone --depth=1 $(git config --get remote.origin.url) -b "$branch" $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
} }