formula_cellar_checks: check exists before glob.
Closes Homebrew/homebrew#33242.
This commit is contained in:
parent
b6631b9a15
commit
19032be45e
@ -150,6 +150,7 @@ module FormulaCellarChecks
|
|||||||
private
|
private
|
||||||
|
|
||||||
def relative_glob(dir, pattern)
|
def relative_glob(dir, pattern)
|
||||||
|
return [] unless Dir.exist? dir
|
||||||
Dir.chdir(dir) { Dir[pattern] }
|
Dir.chdir(dir) { Dir[pattern] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user