Merge pull request #1571 from MikeMcQuaid/admin-doctor

Revert "Fix early exit condition for check_for_member_of_admin_group"
This commit is contained in:
ilovezfs 2016-11-25 17:35:28 +00:00 committed by GitHub
commit d4f8e2fa18

View File

@ -1069,19 +1069,6 @@ module Homebrew
message
end
def check_for_member_of_admin_group
groups = Utils.popen_read("groups").split
return if groups.include?("admin")
<<-EOS.undent
You are not a member of the "admin" group, which will cause
commands like `brew linkapps` to fail.
To fix this, you can run:
`sudo dseditgroup -o edit -a $(whoami) -t user admin`
EOS
end
def all
methods.map(&:to_s).grep(/^check_/)
end