brew: execute update before tap
This seems generally like a good idea given that we're making syntax changes to formulae & are going to keep doing so for a little while yet. Taps may have moved over to that syntax, which then causes tap failures if brew isn't up-to-date. Should fix situations like https://github.com/Homebrew/homebrew-php/issues/3545.
This commit is contained in:
parent
6409186ea9
commit
0b0893e26e
@ -247,7 +247,7 @@ update-preinstall() {
|
||||
[[ -z "$HOMEBREW_NO_AUTO_UPDATE" ]] || return
|
||||
[[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]] || return
|
||||
|
||||
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ]]
|
||||
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" || "$HOMEBREW_COMMAND" = "tap" ]]
|
||||
then
|
||||
brew update --preinstall
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user