aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-07 15:36:54 -0700
committerAdam Vandenberg2010-08-07 18:08:48 -0700
commit0321acf9bee02903ccb0db7d8b2ff39da26100bf (patch)
tree1a356a2cf0209cb090c0f5708f1666a6a7225582 /Library
parent73125f1c189041d7498865d9ab20dcf05a5bbdbe (diff)
downloadbrew-0321acf9bee02903ccb0db7d8b2ff39da26100bf.tar.bz2
Fix regex location
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index 643d0e89a..76177d068 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?