aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/system_config.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-06-10 20:12:55 +0300
committerMike McQuaid2017-06-12 09:11:42 +0100
commit021cef4b2bfebe330fa55e9dcc904a08932bad94 (patch)
tree835ed01ef034c83d219d8a5c34ed10b1d47f882f /Library/Homebrew/system_config.rb
parentc21abf0e3ab89e0218a26905fe44725e19cbf675 (diff)
downloadbrew-021cef4b2bfebe330fa55e9dcc904a08932bad94.tar.bz2
Autocorrect Rubocop Style/SpecialGlobalVars.
Diffstat (limited to 'Library/Homebrew/system_config.rb')
-rw-r--r--Library/Homebrew/system_config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb
index 56826f62d..f89c79306 100644
--- a/Library/Homebrew/system_config.rb
+++ b/Library/Homebrew/system_config.rb
@@ -128,7 +128,7 @@ class SystemConfig
return "N/A" unless File.executable? "/usr/libexec/java_home"
java_xml = Utils.popen_read("/usr/libexec/java_home", "--xml", "--failfast")
- return "N/A" unless $?.success?
+ return "N/A" unless $CHILD_STATUS.success?
javas = []
REXML::XPath.each(REXML::Document.new(java_xml), "//key[text()='JVMVersion']/following-sibling::string") do |item|
javas << item.text