fix(tools/check_for_upgrade): Don't source profile
Reverts #2296, but mostly #1883. There is no need to source ~/.profile when this script is read. oh-my-zsh writes no configuration data in ~/.profile. If the user wishes to use data within ~/.profile, then they should source it in another place. Fixes #2315
This commit is contained in:
parent
1978a0923c
commit
83553597a1
@ -22,8 +22,6 @@ if [[ -z "$epoch_target" ]]; then
|
|||||||
epoch_target=13
|
epoch_target=13
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -f ~/.profile ] && source ~/.profile
|
|
||||||
|
|
||||||
# Cancel upgrade if the current user doesn't have write permissions for the
|
# Cancel upgrade if the current user doesn't have write permissions for the
|
||||||
# oh-my-zsh directory.
|
# oh-my-zsh directory.
|
||||||
[[ -w "$ZSH" ]] || return 0
|
[[ -w "$ZSH" ]] || return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user