aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/link.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/link.rb')
-rw-r--r--Library/Homebrew/cmd/link.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb
index 0184febaf..67ce43478 100644
--- a/Library/Homebrew/cmd/link.rb
+++ b/Library/Homebrew/cmd/link.rb
@@ -5,10 +5,6 @@ module Homebrew extend self
def link
raise KegUnspecifiedError if ARGV.named.empty?
- if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?
- raise "Cowardly refusing to `sudo brew link'\n#{SUDO_BAD_ERRMSG}"
- end
-
mode = OpenStruct.new
mode.overwrite = true if ARGV.include? '--overwrite'