parent
92749f9c52
commit
7dabb465b3
@ -130,7 +130,7 @@ module SystemConfig
|
||||
out, = system_command(curl_executable, args: ["--version"], verbose: false)
|
||||
|
||||
if /^curl (?<curl_version>[\d.]+)/ =~ out
|
||||
"#{curl_version} => #{curl_executable}"
|
||||
"#{curl_version} => #{curl_path}"
|
||||
else
|
||||
"N/A"
|
||||
end
|
||||
|
||||
@ -22,6 +22,10 @@ module Utils
|
||||
@curl_executable ||= HOMEBREW_SHIMS_PATH/"shared/curl"
|
||||
end
|
||||
|
||||
def curl_path
|
||||
@curl_path ||= Utils.popen_read(curl_executable, "--homebrew=print-path").chomp.presence
|
||||
end
|
||||
|
||||
sig {
|
||||
params(
|
||||
extra_args: T.untyped,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user