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.
This commit is contained in:
parent
4108c00bf2
commit
eabc8a2561
@ -38,13 +38,13 @@ then
|
|||||||
export LC_ALL="en_US.UTF-8"
|
export LC_ALL="en_US.UTF-8"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Where we store built products; /usr/local/Cellar if it exists,
|
# Where we store built products; a Cellar in HOMEBREW_PREFIX (often /usr/local
|
||||||
# otherwise a Cellar relative to the Repository.
|
# for bottles) unless there's already a Cellar in HOMEBREW_REPOSITORY.
|
||||||
if [[ -d "$HOMEBREW_PREFIX/Cellar" ]]
|
if [[ -d "$HOMEBREW_REPOSITORY/Cellar" ]]
|
||||||
then
|
then
|
||||||
HOMEBREW_CELLAR="$HOMEBREW_PREFIX/Cellar"
|
|
||||||
else
|
|
||||||
HOMEBREW_CELLAR="$HOMEBREW_REPOSITORY/Cellar"
|
HOMEBREW_CELLAR="$HOMEBREW_REPOSITORY/Cellar"
|
||||||
|
else
|
||||||
|
HOMEBREW_CELLAR="$HOMEBREW_PREFIX/Cellar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$*" in
|
case "$*" in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user