aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-10-31 14:20:29 -0500
committerJack Nagel2013-10-31 14:20:29 -0500
commit643469a17cac53d4989165a34e3266962d1ad6b0 (patch)
tree61aea656887e00a6da00db8b584f25afe11d05b3 /Library
parent655c6f79b435364cfaf23808f0e5650e3a6d0f72 (diff)
downloadbrew-643469a17cac53d4989165a34e3266962d1ad6b0.tar.bz2
sh: only activate X11 if it's installed
Fixes Homebrew/homebrew#23835.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/sh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/sh.rb b/Library/Homebrew/cmd/sh.rb
index 82fcc968d..d05af5bfd 100644
--- a/Library/Homebrew/cmd/sh.rb
+++ b/Library/Homebrew/cmd/sh.rb
@@ -6,7 +6,7 @@ module Homebrew extend self
ENV.activate_extensions!
if superenv?
- ENV.x11 = true
+ ENV.x11 = MacOS::X11.installed?
ENV.deps = Formula.installed.select{|f| f.keg_only? and f.opt_prefix.directory? }.map(&:name)
end
ENV.setup_build_environment