With symlink Cellar, don't try to find /usr/local prefix
This commit is contained in:
parent
1920eecb71
commit
41c3307484
2
bin/brew
2
bin/brew
@ -39,7 +39,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to find a /usr/local HOMEBREW_PREFIX where possible (for bottles)
|
# Try to find a /usr/local HOMEBREW_PREFIX where possible (for bottles)
|
||||||
if [[ -L "/usr/local/bin/brew" ]]
|
if [[ -L "/usr/local/bin/brew" && ! -L "$HOMEBREW_PREFIX/Cellar" ]]
|
||||||
then
|
then
|
||||||
USR_LOCAL_BREW_FILE_DIRECTORY="$(symlink_target_directory "/usr/local/bin/brew" "/usr/local/bin")"
|
USR_LOCAL_BREW_FILE_DIRECTORY="$(symlink_target_directory "/usr/local/bin/brew" "/usr/local/bin")"
|
||||||
USR_LOCAL_HOMEBREW_REPOSITORY="${USR_LOCAL_BREW_FILE_DIRECTORY%/*}"
|
USR_LOCAL_HOMEBREW_REPOSITORY="${USR_LOCAL_BREW_FILE_DIRECTORY%/*}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user