Cancel upgrade if the current user doesn't have write permissions for the oh-my-zsh directory.

This commit is contained in:
n.st 2014-06-04 19:26:46 +02:00
commit a008b0b987

View file

@ -22,6 +22,10 @@ fi
[ -f ~/.profile ] && source ~/.profile [ -f ~/.profile ] && source ~/.profile
# Cancel upgrade if the current user doesn't have write permissions for the
# oh-my-zsh directory.
[[ -w "$ZSH" ]] || return 0
if [ -f ~/.zsh-update ] if [ -f ~/.zsh-update ]
then then
. ~/.zsh-update . ~/.zsh-update