diff options
| author | Max Howell | 2011-08-17 12:30:21 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-17 12:30:21 +0100 |
| commit | 63da621a3fb430cb9ae757a09077890be8aa689e (patch) | |
| tree | 92aeaaa9180d6ccf3c63f53cd6d71985aff29aaa /bin/brew | |
| parent | 8e52cfad1b32ef5b9b0107c4361a5863698a19f7 (diff) | |
| download | homebrew-63da621a3fb430cb9ae757a09077890be8aa689e.tar.bz2 | |
Only error out for `sudo brew install`
Note this only happens if Homebrew is *not* installed sudo. Which is most of the time true.
Fixes #6899
Diffstat (limited to 'bin/brew')
| -rwxr-xr-x | bin/brew | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -26,11 +26,6 @@ when '-v' end end -if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero? - # note we only abort if Homebrew is *not* installed as sudo and the user - # calls brew as root. The fix is to chown brew to root. - abort "Cowardly refusing to `sudo brew'" -end case HOMEBREW_PREFIX.to_s when '/', '/usr' # it may work, but I only see pain this route and don't want to support it abort "Cowardly refusing to continue at this prefix: #{HOMEBREW_PREFIX}" |
