From 41c33074846bd4695aa4e85bd7da60beda365f6d Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 5 Feb 2019 06:44:04 +0100 Subject: [PATCH] With symlink Cellar, don't try to find /usr/local prefix --- bin/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 9406a5d374..c9640a3091 100755 --- a/bin/brew +++ b/bin/brew @@ -39,7 +39,7 @@ then fi # 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 USR_LOCAL_BREW_FILE_DIRECTORY="$(symlink_target_directory "/usr/local/bin/brew" "/usr/local/bin")" USR_LOCAL_HOMEBREW_REPOSITORY="${USR_LOCAL_BREW_FILE_DIRECTORY%/*}"