brew doctor: Ignore config files in /usr/X11R6/bin
`/usr/X11R6` is an Apple-provided symlink to `/usr/X11`. Fixes Homebrew/homebrew#8881.
This commit is contained in:
parent
75bc163f49
commit
d0b904a6e4
@ -480,7 +480,7 @@ def check_for_config_scripts
|
||||
config_scripts = []
|
||||
|
||||
path_folders.each do |p|
|
||||
next if ['/usr/bin', '/usr/sbin', '/usr/X11/bin', "#{HOMEBREW_PREFIX}/bin", "#{HOMEBREW_PREFIX}/sbin"].include? p
|
||||
next if ['/usr/bin', '/usr/sbin', '/usr/X11/bin', '/usr/X11R6/bin', "#{HOMEBREW_PREFIX}/bin", "#{HOMEBREW_PREFIX}/sbin"].include? p
|
||||
next if p =~ %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})] if real_cellar
|
||||
|
||||
configs = Dir["#{p}/*-config"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user