aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index fd87ffeea..90ff517b1 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -301,9 +301,10 @@ Please take one of the following actions:
end
end
- def x11
+ def x11 silent=false
unless MacOS::X11.installed?
- opoo "You do not have X11 installed, this formula may not build."
+ opoo "You do not have X11 installed, this formula may not build." unless silent
+ return
end
# There are some config scripts here that should go in the PATH