Commit e59e1c84 authored by Arvind Chembarpu's avatar Arvind Chembarpu
Browse files

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

parent aa15ebad
...@@ -26,6 +26,9 @@ fi ...@@ -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 ...@@ -54,4 +57,3 @@ else
# create the zsh file # create the zsh file
_update_zsh_update _update_zsh_update
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment