diff options
| author | Mike McQuaid | 2014-10-17 09:23:50 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-17 09:23:50 +0100 |
| commit | 66a3d7141a9cdb77d1c6c3355c35e5d3abeef401 (patch) | |
| tree | 6792f68cc988ecf6d6b5c1394ca235d5221313d5 /Library/Homebrew | |
| parent | 20f11893acd57ef612b64ab2c672336d63957f1b (diff) | |
| download | homebrew-66a3d7141a9cdb77d1c6c3355c35e5d3abeef401.tar.bz2 | |
formula_cellar_checks: Ruby 1.8 compatible check.
Diffstat (limited to 'Library/Homebrew')
| -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 |
