Commit b3c10b92 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Merge pull request #4505 from arvindch/checked-upgrade

Check for git before trying to upgrade OMZ
parents e0c9ada3 e59e1c84
......@@ -26,6 +26,9 @@ fi
# oh-my-zsh directory.
[[ -w "$ZSH" ]] || return 0
# Cancel upgrade if git is unavailable on the system
whence git >/dev/null || return 0
if [ -f ~/.zsh-update ]
then
. ~/.zsh-update
......@@ -54,4 +57,3 @@ else
# create the zsh file
_update_zsh_update
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