Commit 152e1e07 authored by n.st's avatar n.st
Browse files

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

parent 357ab491
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment