aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-02-25 14:11:46 +0800
committerXu Cheng2015-02-25 16:43:30 +0800
commitf129003b7397b309c09897893832fe545d8ee665 (patch)
tree02c2c387eaad97073e2254c78a99edeb2c4b134e /Library
parent540f8a52ea9633cd4a9baa18bab54cf6e8879a9b (diff)
downloadhomebrew-f129003b7397b309c09897893832fe545d8ee665.tar.bz2
JavaDependency: stop appending trailing +
Closes #37175. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index e59eb7e4a..899d9a47e 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -148,7 +148,7 @@ class JavaDependency < Requirement
def java_version
args = %w[--failfast]
- args << "--version" << "#{@version}+" if @version
+ args << "--version" << "#{@version}" if @version
@java_home = Utils.popen_read("/usr/libexec/java_home", *args).chomp
$?.success?
end