Skip to content
Snippets Groups Projects
Commit 89c33489 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1567 from cesarandreu/fix-diagnostic-conditonal

Fix early exit condition for check_for_member_of_admin_group
parents 7f13b37b 3b53418a
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