1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 15:30:40 +01:00

Check for git before trying to upgrade, as per #4504

This commit is contained in:
Arvind Chembarpu
2015-10-16 23:19:55 +05:30
parent aa15ebad3e
commit e59e1c8417

View File

@@ -26,6 +26,9 @@ fi
# oh-my-zsh directory. # oh-my-zsh directory.
[[ -w "$ZSH" ]] || return 0 [[ -w "$ZSH" ]] || return 0
# Cancel upgrade if git is unavailable on the system
whence git >/dev/null || return 0
if [ -f ~/.zsh-update ] if [ -f ~/.zsh-update ]
then then
. ~/.zsh-update . ~/.zsh-update
@@ -54,4 +57,3 @@ else
# create the zsh file # create the zsh file
_update_zsh_update _update_zsh_update
fi fi