mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Avoid an attempt to update if git isn't available, as it will only fail.
This commit is contained in:
parent
aa15ebad3e
commit
1d463304c4
1 changed files with 3 additions and 0 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 no git command is available on this system.
|
||||||
|
whence git >/dev/null || return 0
|
||||||
|
|
||||||
if [ -f ~/.zsh-update ]
|
if [ -f ~/.zsh-update ]
|
||||||
then
|
then
|
||||||
. ~/.zsh-update
|
. ~/.zsh-update
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue