411 Commits

Author SHA1 Message Date
Mike McQuaid
42c2ed5e7f brew.sh: set HOMEBREW_DEVELOPER from Git config. 2016-09-08 20:44:32 +01:00
Mike McQuaid
0cfe51b328 brew.sh: allow cask to be run as root.
It also uses `sudo` for legitimate things e.g. installing `.pkg`s
systemwide.
2016-09-01 20:35:12 +01:00
Dominyk Tiller
0b0893e26e
brew: execute update before tap
This seems generally like a good idea given that we're making syntax changes to
formulae & are going to keep doing so for a little while yet. Taps may have moved
over to that syntax, which then causes tap failures if brew isn't up-to-date.

Should fix situations like https://github.com/Homebrew/homebrew-php/issues/3545.
2016-08-27 15:52:52 +01:00
Mike McQuaid
27b0ca4b47 brew.sh: complain when running Homebrew as root.
As discussed: announce that we are deprecating running Homebrew as the
root user as it's insecure and requires disabling the sandbox.

Fixes #796.
2016-08-25 18:32:32 +01:00
Mike McQuaid
eabc8a2561 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.
2016-08-24 10:04:30 +01:00
Andrew Janke
d57800c45b brew: sanitize BASH_ENV 2016-08-14 17:20:29 -04:00
Mike McQuaid
b6f467b007 Ship Homebrew auto-update support.
Roll this out to everyone (not just developers) and document the
environment variables used for configuration.
2016-08-10 15:46:31 +01:00
Mike McQuaid
1a240cd52a Tweak HOMEBREW_NO_AUTO_UPDATE handling.
This can just live in `brew.sh` and then it doesn’t need repeated in
all the other places.
2016-08-10 15:37:04 +01:00
Martin Afanasjew
79c49b3638 brew.sh: fix style inconsistencies 2016-08-08 16:00:12 +02:00
Xu Cheng
177d988917
brew.sh: make sudo-checker cross-platform 2016-07-17 02:07:06 +08:00
Mike McQuaid
a07ab8bb92 brew.{rb,sh}: move to Library/Homebrew. (#506) 2016-07-15 19:33:30 +01:00