From d6bf2f57493f2a94ecce9f07c8a0505a8f29e70a Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 23 Oct 2015 19:42:22 +0800 Subject: run Checks#check_for_unsupported_osx unconditionally --- Library/Homebrew/exceptions.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index adb17fe57..3791762c0 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -251,10 +251,9 @@ class BuildError < RuntimeError puts issues.map { |i| "#{i["title"]} #{i["html_url"]}" }.join("\n") end - if OS::Mac.prerelease? - require "cmd/doctor" - opoo Checks.new.check_for_unsupported_osx - end + require "cmd/doctor" + unsupported_osx = Checks.new.check_for_unsupported_osx + opoo unsupported_osx if unsupported_osx end end -- cgit v1.2.3