aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-10-17 09:23:50 +0100
committerMike McQuaid2014-10-17 09:23:50 +0100
commitfc39dbf2d4d5559979340d8eea2ad39d3de67efd (patch)
tree6f82ff513683308e418d75031bf27c7514ccdf7d /Library
parent19032be45e97ac4d7ca264f1ddece3d8d9d80e51 (diff)
downloadbrew-fc39dbf2d4d5559979340d8eea2ad39d3de67efd.tar.bz2
formula_cellar_checks: Ruby 1.8 compatible check.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_cellar_checks.rb2
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