diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 918301ac16..a5d9beda08 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -150,6 +150,7 @@ module FormulaCellarChecks private def relative_glob(dir, pattern) + return [] unless Dir.exist? dir Dir.chdir(dir) { Dir[pattern] } end end