diff options
| author | Mike McQuaid | 2014-10-17 08:58:47 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-17 09:01:17 +0100 |
| commit | 11f9266abef1593e92b779524a32dc4c03698999 (patch) | |
| tree | 0ed3fcacb0c595aec0a5d4b51ad3f139446dde74 /Library/Homebrew/formula_cellar_checks.rb | |
| parent | c753b8099733ff87d5008d4d5bdf40f6781cc23c (diff) | |
| download | homebrew-11f9266abef1593e92b779524a32dc4c03698999.tar.bz2 | |
formula_cellar_checks: check exists before glob.
Closes #33242.
Diffstat (limited to 'Library/Homebrew/formula_cellar_checks.rb')
| -rw-r--r-- | Library/Homebrew/formula_cellar_checks.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 918301ac1..a5d9beda0 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -150,6 +150,7 @@ module FormulaCellarChecks private def relative_glob(dir, pattern) + return [] unless Dir.exist? dir Dir.chdir(dir) { Dir[pattern] } end end |
