From 010a1461f7fd02f14b9cfe9bd3c9018fddcb4431 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 14 Apr 2013 23:48:20 -0500 Subject: [PATCH] Avoid repeated interpolation here too --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 35631956c4..1bab04a7d7 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -204,7 +204,7 @@ def check_for_broken_symlinks Keg::PRUNEABLE_DIRECTORIES.each do |d| next unless d.directory? d.find do |pn| - broken_symlinks << pn if pn.symlink? and pn.readlink.expand_path.to_s =~ /^#{HOMEBREW_PREFIX}/ and not pn.exist? + broken_symlinks << pn if pn.symlink? and pn.readlink.expand_path.to_s =~ /^#{HOMEBREW_PREFIX}/o and not pn.exist? end end unless broken_symlinks.empty? then <<-EOS.undent