Avoid an attempt to update if git isn't available, as it will only fail.

This commit is contained in:
Chris Ross 2015-10-16 15:25:17 -04:00
commit 1d463304c4

View file

@ -26,6 +26,9 @@ fi
# oh-my-zsh directory.
[[ -w "$ZSH" ]] || return 0
# Cancel upgrade if no git command is available on this system.
whence git >/dev/null || return 0
if [ -f ~/.zsh-update ]
then
. ~/.zsh-update