JavaDependency: stop appending trailing +
Closes Homebrew/homebrew#37175. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
e5c1f5115c
commit
747542352d
@ -148,7 +148,7 @@ class JavaDependency < Requirement
|
|||||||
|
|
||||||
def java_version
|
def java_version
|
||||||
args = %w[--failfast]
|
args = %w[--failfast]
|
||||||
args << "--version" << "#{@version}+" if @version
|
args << "--version" << "#{@version}" if @version
|
||||||
@java_home = Utils.popen_read("/usr/libexec/java_home", *args).chomp
|
@java_home = Utils.popen_read("/usr/libexec/java_home", *args).chomp
|
||||||
$?.success?
|
$?.success?
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user