c63f27a9f2a324fa094ddcb4235f28b0254cc457

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3412 from mcornella/feltnerm-patch-1

Disable sourcing .profile when checking for available updates

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index 4a0803210e85a57e1d24f13229521a2d4caa0f2c..b2b356e0cb957a0701b29732be1a2a43cd760e12 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -22,8 +22,6 @@ if [[ -z "$epoch_target" ]]; then
 6   epoch_target=13
 7 fi
 8 
 9-[ -f ~/.profile ] && source ~/.profile
10-
11 # Cancel upgrade if the current user doesn't have write permissions for the
12 # oh-my-zsh directory.
13 [[ -w "$ZSH" ]] || return 0