From f2002c4558d8b3c759c22fcec0ed45b0619373e6 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 17 Feb 2012 19:43:44 -0800 Subject: This should be a regex --- Library/Homebrew/extend/ENV.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index f3ba9c0c5..c93224e9b 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -135,7 +135,7 @@ module HomebrewEnvExtension raise "GCC could not be found" if not File.exist? ENV['CC'] end - if not ENV['CC'] =~ %{^/usr/bin/xcrun } + if not ENV['CC'] =~ %r{^/usr/bin/xcrun } raise "GCC could not be found" if Pathname.new(ENV['CC']).realpath.to_s =~ /llvm/ end -- cgit v1.2.3