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
brew update --preinstall
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" ]]

View File

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

View File

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