From fc39dbf2d4d5559979340d8eea2ad39d3de67efd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 17 Oct 2014 09:23:50 +0100 Subject: formula_cellar_checks: Ruby 1.8 compatible check. --- Library/Homebrew/formula_cellar_checks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3