Tweak HOMEBREW_NO_AUTO_UPDATE handling.

This can just live in `brew.sh` and then it doesn’t need repeated in
all the other places.
This commit is contained in:
Mike McQuaid 2016-08-10 14:18:08 +01:00
parent 11116c2467
commit 1a240cd52a
3 changed files with 3 additions and 3 deletions

View File

@ -235,6 +235,9 @@ update-preinstall() {
then then
brew update --preinstall brew update --preinstall
fi fi
# If we've checked for updates, we don't need to check again.
export HOMEBREW_NO_AUTO_UPDATE="1"
} }
if [[ -n "$HOMEBREW_BASH_COMMAND" ]] if [[ -n "$HOMEBREW_BASH_COMMAND" ]]

View File

@ -359,8 +359,6 @@ EOS
# only allow one instance of brew update # only allow one instance of brew update
lock update lock update
# prevent recursive updates
export HOMEBREW_NO_AUTO_UPDATE="1"
git_init_if_necessary git_init_if_necessary
# rename Taps directories # rename Taps directories

View File

@ -920,7 +920,6 @@ module Homebrew
end end
ENV["HOMEBREW_DEVELOPER"] = "1" ENV["HOMEBREW_DEVELOPER"] = "1"
ENV["HOMEBREW_NO_AUTO_UPDATE"] = "1"
ENV["HOMEBREW_SANDBOX"] = "1" ENV["HOMEBREW_SANDBOX"] = "1"
ENV["HOMEBREW_RUBY_MACHO"] = "1" if RUBY_TWO ENV["HOMEBREW_RUBY_MACHO"] = "1" if RUBY_TWO
ENV["HOMEBREW_NO_EMOJI"] = "1" ENV["HOMEBREW_NO_EMOJI"] = "1"