Skip to content
Snippets Groups Projects
Commit 01a92dd9 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1262 from MikeMcQuaid/warn-repo-cellar

brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar
parents af78b64d 981cac2a
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment