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