Fix early exit condition for check_for_member_of_admin_group
This commit is contained in:
parent
7f13b37b90
commit
3b53418a2b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user