mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
Fix regex location
This commit is contained in:
1 parent
6bf6623d5a
commit
af05de5ede
1 file changed
+1
-1
@@ -318,7 +318,7 @@ def check_for_config_scripts
|
||||
paths = ENV['PATH'].split(':').collect{|p| File.expand_path p}
|
||||
paths.each do |p|
|
||||
next if ['/usr/bin', '/usr/sbin', '/usr/X11/bin', "#{HOMEBREW_PREFIX}/bin", "#{HOMEBREW_PREFIX}/sbin"].include? p
|
||||
next if %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})] =~ p
|
||||
next if p =~ %r[^(#{real_cellar.to_s}|#{HOMEBREW_CELLAR.to_s})]
|
||||
|
||||
configs = Dir["#{p}/*-config"]
|
||||
# puts "#{p}\n #{configs * ' '}" unless configs.empty?
|
||||
|
||||
Reference in new issue
Block a user