aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-08-24 14:41:52 +0100
committerGitHub2016-08-24 14:41:52 +0100
commit66f26259ac6ee36d960c95aa704873104239b4b3 (patch)
tree7e5c43cb6aaf0930cae8ccd670a1d11060bb8a15 /Library/Homebrew
parentacfb1b1979fcee68c334c0abf7a7747b958e7d77 (diff)
parenteabc8a25611470af4edee8b2aff945ea15b34e95 (diff)
downloadbrew-66f26259ac6ee36d960c95aa704873104239b4b3.tar.bz2
Merge pull request #780 from MikeMcQuaid/usr-local-cellar
brew.sh: don't require /usr/local/Cellar creation.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/brew.sh10
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