fix: crash when curl is not installed
This commit is contained in:
parent
63e8817950
commit
a2646a8694
@ -6,8 +6,8 @@ def curl_executable
|
||||
ENV["HOMEBREW_CURL"],
|
||||
which("curl"),
|
||||
"/usr/bin/curl",
|
||||
].map { |c| Pathname(c) }.find(&:executable?)
|
||||
raise "curl is not executable" unless @curl
|
||||
].compact.map { |c| Pathname(c) }.find(&:executable?)
|
||||
raise "no executable curl was found" unless @curl
|
||||
@curl
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user