Skip to content
Snippets Groups Projects
Commit 7ed7e3cd authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1026 from MikeMcQuaid/migration-auto-update-fix

brew.sh: fix repository auto-update change.
parents b0f3e38f c30665af
No related branches found
No related tags found
No related merge requests found
......@@ -268,6 +268,17 @@ update-preinstall() {
brew update --preinstall
fi
# If brew update --preinstall did a migration then export the new locations.
if [[ "$HOMEBREW_REPOSITORY" = "/usr/local" &&
! -d "$HOMEBREW_REPOSITORY/.git" &&
-d "/usr/local/Homebrew/.git" ]]
then
HOMEBREW_REPOSITORY="/usr/local/Homebrew"
HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
export HOMEBREW_REPOSITORY
export HOMEBREW_LIBRARY
fi
# If we've checked for updates, we don't need to check again.
export HOMEBREW_NO_AUTO_UPDATE="1"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment