From 3b53418a2be4a862f4d02494a68e309a87dfcd1a Mon Sep 17 00:00:00 2001 From: Cesar Andreu <cesarandreu@gmail.com> Date: Fri, 25 Nov 2016 02:30:50 -0800 Subject: [PATCH] Fix early exit condition for check_for_member_of_admin_group --- Library/Homebrew/diagnostic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index edade67bf6..b5dd07ac5b 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 -- GitLab