1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

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

This commit is contained in:
n.st 2013-12-18 18:27:20 +01:00
parent 357ab4912b
commit 152e1e07e0

View file

@ -26,6 +26,13 @@ if [ -f ~/.zsh-update ]
then
. ~/.zsh-update
# cancel update if the current user doesn't have write permissions for the
# oh-my-zsh directory
if [ -n $(find -not -writable "$ZSH") ]
then
return 0;
fi
if [[ -z "$LAST_EPOCH" ]]; then
_update_zsh_update && return 0;
fi