formula_cellar_checks: Ruby 1.8 compatible check.

This commit is contained in:
Mike McQuaid 2014-10-17 09:23:50 +01:00
parent 19032be45e
commit fc39dbf2d4

View File

@ -150,7 +150,7 @@ module FormulaCellarChecks
private
def relative_glob(dir, pattern)
return [] unless Dir.exist? dir
return [] unless Pathname.new(dir).directory?
Dir.chdir(dir) { Dir[pattern] }
end
end