From 981cac2a2e8795b92454e73fd48eb9f530a50c28 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 11 Oct 2016 09:37:37 +0100 Subject: brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar 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(+) (limited to 'Library') diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 55d75511c..923dd4fd8 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 <