From 0321acf9bee02903ccb0db7d8b2ff39da26100bf Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 7 Aug 2010 15:36:54 -0700 Subject: [PATCH] Fix regex location --- Library/Homebrew/brew_doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 643d0e89af..76177d0683 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -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?