diff options
| -rw-r--r-- | Library/Homebrew/formula_cellar_checks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index a5d9beda0..da14f38e1 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -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 |
