aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/unpin.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-08 18:17:28 -0700
committerAdam Vandenberg2013-06-08 20:44:56 -0700
commit4c9ac19e878750cf2c2832759d9902796079d9f0 (patch)
tree0a510b5ddc495dfc6c265d0227849e4617cba41d /Library/Homebrew/cmd/unpin.rb
parentbae36f0830df37989b86ece36cc5282f32d7d087 (diff)
downloadbrew-4c9ac19e878750cf2c2832759d9902796079d9f0.tar.bz2
Consolidate sudo checks.
Closes Homebrew/homebrew#20318.
Diffstat (limited to 'Library/Homebrew/cmd/unpin.rb')
-rw-r--r--Library/Homebrew/cmd/unpin.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/unpin.rb b/Library/Homebrew/cmd/unpin.rb
index 265f7a941..4da280eef 100644
--- a/Library/Homebrew/cmd/unpin.rb
+++ b/Library/Homebrew/cmd/unpin.rb
@@ -2,9 +2,6 @@ require 'formula'
module Homebrew extend self
def unpin
- if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?
- abort "Cowardly refusing to `sudo unpin'"
- end
raise FormulaUnspecifiedError if ARGV.named.empty?
ARGV.formulae.each do |f|