aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/brew.rb')
-rwxr-xr-xLibrary/brew.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index 64006cc81..d095744f6 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -102,7 +102,12 @@ begin
if sudo_check.include? cmd
if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?
- raise "Cowardly refusing to `sudo brew #{cmd}`\n#{SUDO_BAD_ERRMSG}"
+ raise <<-EOS.undent
+ Cowardly refusing to `sudo brew #{cmd}`
+ You can use brew with sudo, but only if the brew executable is owned by root.
+ However, this is both not recommended and completely unsupported so do so at
+ your own risk.
+ EOS
end
end