diff options
| author | Mike McQuaid | 2014-10-17 09:23:50 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-17 09:23:50 +0100 |
| commit | fc39dbf2d4d5559979340d8eea2ad39d3de67efd (patch) | |
| tree | 6f82ff513683308e418d75031bf27c7514ccdf7d /Library | |
| parent | 19032be45e97ac4d7ca264f1ddece3d8d9d80e51 (diff) | |
| download | brew-fc39dbf2d4d5559979340d8eea2ad39d3de67efd.tar.bz2 | |
formula_cellar_checks: Ruby 1.8 compatible check.
Diffstat (limited to 'Library')
| -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 |
