From 981cac2a2e8795b92454e73fd48eb9f530a50c28 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 11 Oct 2016 09:37:37 +0100 Subject: [PATCH] brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you’re using a /usr/local prefix but e.g. /usr/local/homebrew/Cellar then you’ll miss out on most binary packages for no good reason so warn people of that. --- Library/Homebrew/brew.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 55d75511cc..923dd4fd85 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -277,6 +277,18 @@ EOS } check-run-command-as-root +if [[ "$HOMEBREW_PREFIX" = "/usr/local" && + "$HOMEBREW_CELLAR" = "$HOMEBREW_REPOSITORY/Cellar" ]] +then + cat >&2 <