mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Cancel upgrade if the current user doesn't have write permissions for the oh-my-zsh directory.
This commit is contained in:
parent
3913106b2e
commit
a008b0b987
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue