Extra check
This commit is contained in:
parent
df7ae5eb26
commit
91c1a54b67
@ -40,7 +40,7 @@ class RubyRequirement < Requirement
|
|||||||
|
|
||||||
def rubies
|
def rubies
|
||||||
rubies = which_all("ruby")
|
rubies = which_all("ruby")
|
||||||
if ruby_formula.installed?
|
if ruby_formula && ruby_formula.installed?
|
||||||
rubies.unshift Pathname.new(ruby_formula.bin/"ruby")
|
rubies.unshift Pathname.new(ruby_formula.bin/"ruby")
|
||||||
end
|
end
|
||||||
rubies.uniq
|
rubies.uniq
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user