diff options
| author | Mike McQuaid | 2016-10-12 08:45:54 +0100 |
|---|---|---|
| committer | GitHub | 2016-10-12 08:45:54 +0100 |
| commit | 01a92dd94eb3d10779992e332a30bd3b5434a593 (patch) | |
| tree | d1bd92cfdaa4eb9fb1f68409d2b8c40c0b321edd /Library | |
| parent | af78b64d5c88f4a2df32c043f8e8cffd50fd3067 (diff) | |
| parent | 981cac2a2e8795b92454e73fd48eb9f530a50c28 (diff) | |
| download | brew-01a92dd94eb3d10779992e332a30bd3b5434a593.tar.bz2 | |
Merge pull request #1262 from MikeMcQuaid/warn-repo-cellar
brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 <<EOS +Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set +to $HOMEBREW_CELLAR. Your current HOMEBREW_CELLAR location will stop +you being able to use all the binary packages (bottles) Homebrew provides. We +recommend you move your HOMEBREW_CELLAR to /usr/local/Cellar which will get you +access to all bottles." +EOS +fi + # Hide shellcheck complaint: # shellcheck source=/dev/null source "$HOMEBREW_LIBRARY/Homebrew/utils/analytics.sh" |
