aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-07-06 16:18:24 +0800
committerXu Cheng2016-07-06 16:18:24 +0800
commitcc01d3f59aedfa6acefc82660e52d615f3165df5 (patch)
treec197bc0c33374150856863762d6bf26fce9d3edb /Library
parentca005cb8245e7e12ad808d78d49bce3953e1153c (diff)
downloadbrew-cc01d3f59aedfa6acefc82660e52d615f3165df5.tar.bz2
doctor: fix undefined method `include?' for nil:NilClass
Closes https://github.com/Homebrew/homebrew-core/issues/2758
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/os/mac/diagnostic.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index 00a297d34..25b451e9f 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -314,6 +314,7 @@ module Homebrew
end
def check_for_beta_xquartz
+ return unless MacOS::XQuartz.version
return unless MacOS::XQuartz.version.include? "beta"
<<-EOS.undent