mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Merge pull request #4505 from arvindch/checked-upgrade
Check for git before trying to upgrade OMZ
This commit is contained in:
commit
b3c10b925e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue