aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_cellar_checks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula_cellar_checks.rb')
-rw-r--r--Library/Homebrew/formula_cellar_checks.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb
index 918301ac1..a5d9beda0 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