brew.sh: use brew update in update-preinstall

Preinstall update should be performed in a separate process,
so it can maintain and close its own update lock.
This commit is contained in:
Xu Cheng 2016-05-13 14:39:16 +08:00
parent 92934db202
commit 750bb24a78

View File

@ -224,7 +224,7 @@ update-preinstall() {
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source "$HOMEBREW_LIBRARY/Homebrew/cmd/update.sh"
homebrew-update --preinstall
brew update --preinstall
fi
}