Skip to content
Snippets Groups Projects
Commit 643469a1 authored by Jack Nagel's avatar Jack Nagel
Browse files

sh: only activate X11 if it's installed

Fixes Homebrew/homebrew#23835.
parent 655c6f79
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment