Fix early exit condition for check_for_member_of_admin_group

This commit is contained in:
Cesar Andreu 2016-11-25 02:30:50 -08:00
parent 7f13b37b90
commit 3b53418a2b

View File

@ -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