Skip to content
Snippets Groups Projects
Commit 3b53418a authored by Cesar Andreu's avatar Cesar Andreu
Browse files

Fix early exit condition for check_for_member_of_admin_group

parent 7f13b37b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment