Skip to content
Snippets Groups Projects
Commit fc39dbf2 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formula_cellar_checks: Ruby 1.8 compatible check.

parent 19032be4
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment