config: use quiet_system
Closes Homebrew/homebrew#43691. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
e3299bb7a3
commit
8a1495ef40
@ -123,7 +123,7 @@ module Homebrew
|
||||
def describe_java
|
||||
if which("java").nil?
|
||||
"N/A"
|
||||
elsif !(`/usr/libexec/java_home --failfast &>/dev/null` && $?.success?)
|
||||
elsif !quiet_system "/usr/libexec/java_home", "--failfast"
|
||||
"N/A"
|
||||
else
|
||||
java = `java -version 2>&1`.lines.first.chomp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user