From 19032be45e97ac4d7ca264f1ddece3d8d9d80e51 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 17 Oct 2014 08:58:47 +0100 Subject: [PATCH] formula_cellar_checks: check exists before glob. Closes Homebrew/homebrew#33242. --- Library/Homebrew/formula_cellar_checks.rb | 1 + 1 file changed, 1 insertion(+) 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