Skip to content

Commit

Permalink
Cancel update if the current user doesn't have write permissions for …
Browse files Browse the repository at this point in the history
…the oh-my-zsh directory.
  • Loading branch information
n-st committed Dec 18, 2013
1 parent 357ab49 commit 152e1e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/check_for_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 152e1e0

Please sign in to comment.