diff options
| author | ilovezfs | 2016-11-25 17:35:28 +0000 |
|---|---|---|
| committer | GitHub | 2016-11-25 17:35:28 +0000 |
| commit | d4f8e2fa185b7d0c508de497bf04c541b0abc0ea (patch) | |
| tree | bfa6dbaee404beb2207545e9e6528786b8793fa0 /Library | |
| parent | 89c3348923c3450d8d32f1252abd53209b39c288 (diff) | |
| parent | 771ae5c528385ceb80009b0b5fe37e3b481394a9 (diff) | |
| download | brew-d4f8e2fa185b7d0c508de497bf04c541b0abc0ea.tar.bz2 | |
Merge pull request #1571 from MikeMcQuaid/admin-doctor
Revert "Fix early exit condition for check_for_member_of_admin_group"
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index b5dd07ac5..19148a6ae 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -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 |
