aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-10 15:01:23 +0100
committerMarkus Reiter2016-11-10 15:01:29 +0100
commita0f9963391ee1062304f2ddabce84ec0aa2b7df7 (patch)
tree99ca518df81b07233cdb4fe4a1e79f25f30be02f /Library/Homebrew/cask/lib
parent842120ccf362a0b97a4c50d3c922a5195e18e679 (diff)
downloadbrew-a0f9963391ee1062304f2ddabce84ec0aa2b7df7.tar.bz2
Disallow running `brew cask` as `root`.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/doctor.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb
index dcccde13f..4c5bf98e6 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb
@@ -31,7 +31,6 @@ module Hbc
ohai "Contents of $PATH Environment Variable:", render_env_var("PATH")
ohai "Contents of $SHELL Environment Variable:", render_env_var("SHELL")
ohai "Contents of Locale Environment Variables:", render_with_none(locale_variables)
- ohai "Running As Privileged User:", render_with_none_as_error(privileged_uid)
end
def self.alt_taps
@@ -107,12 +106,6 @@ module Hbc
ENV.keys.grep(/^(?:LC_\S+|LANG|LANGUAGE)\Z/).collect { |v| %Q(#{v}="#{ENV[v]}") }.sort.join("\n")
end
- def self.privileged_uid
- Process.euid.zero? ? "Yes #{error_string "warning: not recommended"}" : "No"
- rescue StandardError
- notfound_string
- end
-
def self.none_string
"<NONE>"
end