aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorXu Cheng2015-10-23 19:42:22 +0800
committerXu Cheng2015-10-23 19:42:22 +0800
commitd6bf2f57493f2a94ecce9f07c8a0505a8f29e70a (patch)
treec7c94b7de70682d434a60fa25c4d28906877db8e /Library/Homebrew/exceptions.rb
parent30cad0608ff6c22051b5a1e0f3bf566d643bb673 (diff)
downloadbrew-d6bf2f57493f2a94ecce9f07c8a0505a8f29e70a.tar.bz2
run Checks#check_for_unsupported_osx unconditionally
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb7
1 files changed, 3 insertions, 4 deletions
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