brew: Make HOMEBREW_LIBRARY based off of HOMEBREW_REPOSITORY

This makes the logic match the Ruby code from before it was moved here
(see 390e327f55126f7ee9519bc6c03a0c0aa14f7168)
This commit is contained in:
David Caldwell 2016-02-13 11:18:33 -08:00 committed by Mike McQuaid
parent 9e32aede10
commit 94034a6915

View File

@ -16,6 +16,6 @@ fi
HOMEBREW_PREFIX="${HOMEBREW_BREW_FILE%/*/*}"
HOMEBREW_REPOSITORY="${BREW_FILE_DIRECTORY%/*}"
HOMEBREW_LIBRARY="${BREW_FILE_DIRECTORY%/*}/Library"
HOMEBREW_LIBRARY="$HOMEBREW_REPOSITORY/Library"
source "$HOMEBREW_LIBRARY/brew.sh"