aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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