From 3b53418a2be4a862f4d02494a68e309a87dfcd1a Mon Sep 17 00:00:00 2001 From: Cesar Andreu Date: Fri, 25 Nov 2016 02:30:50 -0800 Subject: Fix early exit condition for check_for_member_of_admin_group --- Library/Homebrew/diagnostic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index edade67bf..b5dd07ac5 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 -- cgit v1.2.3