diff options
| author | Mike McQuaid | 2016-08-24 10:04:30 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-24 10:04:30 +0100 |
| commit | eabc8a25611470af4edee8b2aff945ea15b34e95 (patch) | |
| tree | e74ec86f6e2276fa359666cb4d4ecd69f396f976 /Library | |
| parent | 4108c00bf2105e2aac4791f220bd5dfb6e91489f (diff) | |
| download | brew-eabc8a25611470af4edee8b2aff945ea15b34e95.tar.bz2 | |
brew.sh: don't require /usr/local/Cellar creation.
If you're using e.g. a `/usr/local/homebrew` prefix then don't require
the `/usr/local/Cellar` to be manually created to avoid e.g.
`/usr/local/homebrew/Cellar` being used. Let's do all we can to let
people use this `Cellar` location as it means they can put their
repository wherever they like and still use all our bottles.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 1cb65a72a..722a7750d 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -38,13 +38,13 @@ then export LC_ALL="en_US.UTF-8" fi -# Where we store built products; /usr/local/Cellar if it exists, -# otherwise a Cellar relative to the Repository. -if [[ -d "$HOMEBREW_PREFIX/Cellar" ]] +# Where we store built products; a Cellar in HOMEBREW_PREFIX (often /usr/local +# for bottles) unless there's already a Cellar in HOMEBREW_REPOSITORY. +if [[ -d "$HOMEBREW_REPOSITORY/Cellar" ]] then - HOMEBREW_CELLAR="$HOMEBREW_PREFIX/Cellar" -else HOMEBREW_CELLAR="$HOMEBREW_REPOSITORY/Cellar" +else + HOMEBREW_CELLAR="$HOMEBREW_PREFIX/Cellar" fi case "$*" in |
