Skip to content

Commit

Permalink
Cancel upgrade if $ZSH is not writable
Browse files Browse the repository at this point in the history
  • Loading branch information
n-st authored and ncanceill committed Jun 4, 2014
1 parent de41dee commit a9e1d9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/check_for_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ if [[ -z "$epoch_target" ]]; then
epoch_target=13
fi

[ -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 ]
then
. ~/.zsh-update
Expand Down

0 comments on commit a9e1d9a

Please sign in to comment.