diff options
| author | Mike McQuaid | 2016-11-25 13:17:26 +0000 |
|---|---|---|
| committer | GitHub | 2016-11-25 13:17:26 +0000 |
| commit | 89c3348923c3450d8d32f1252abd53209b39c288 (patch) | |
| tree | 73c669b358b97c1c3a5fb23d002adfc588b7b195 /Library | |
| parent | 7f13b37b903564e2a64cea982d6b84d1aa6b800b (diff) | |
| parent | 3b53418a2be4a862f4d02494a68e309a87dfcd1a (diff) | |
| download | brew-89c3348923c3450d8d32f1252abd53209b39c288.tar.bz2 | |
Merge pull request #1567 from cesarandreu/fix-diagnostic-conditonal
Fix early exit condition for check_for_member_of_admin_group
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index edade67bf..b5dd07ac5 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -1071,7 +1071,7 @@ module Homebrew def check_for_member_of_admin_group groups = Utils.popen_read("groups").split - return unless groups.include?("admin") + return if groups.include?("admin") <<-EOS.undent You are not a member of the "admin" group, which will cause |
