This should be a regex

This commit is contained in:
Adam Vandenberg 2012-02-17 19:43:44 -08:00
parent b0ece7613f
commit f2002c4558

View File

@ -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