formula_cellar_checks: check exists before glob.

Closes Homebrew/homebrew#33242.
This commit is contained in:
Mike McQuaid 2014-10-17 08:58:47 +01:00
parent b6631b9a15
commit 19032be45e

View File

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