java_requirement: don't consider macOS Java stub
This commit is contained in:
parent
6d42e2a527
commit
0ca4bd030a
@ -13,6 +13,7 @@ class JavaRequirement < Requirement
|
|||||||
javas << Pathname.new(ENV["JAVA_HOME"])/"bin/java" if ENV["JAVA_HOME"]
|
javas << Pathname.new(ENV["JAVA_HOME"])/"bin/java" if ENV["JAVA_HOME"]
|
||||||
javas << java_home_cmd
|
javas << java_home_cmd
|
||||||
javas << which("java")
|
javas << which("java")
|
||||||
|
javas.delete(Pathname.new("/usr/bin/java")) # /usr/bin/java is a stub on macOS
|
||||||
javas
|
javas
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user