brew.sh: drop obsolete source in update-preinstall

No need to source `cmd/update.sh` if `homebrew-update` is not going to
be called directly. Amends 750bb24a787dc6e4a13f2b842a3e8dcb8d5fb761.
This commit is contained in:
Martin Afanasjew 2016-05-18 18:26:05 +02:00
parent 95c3a31b33
commit 406fdbb391

View File

@ -227,9 +227,6 @@ update-preinstall() {
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ]]
then
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source "$HOMEBREW_LIBRARY/Homebrew/cmd/update.sh"
brew update --preinstall
fi
}