Skip to content
Snippets Groups Projects
Commit a2646a86 authored by Buck Evan's avatar Buck Evan Committed by Buck Evan (bukzor)
Browse files

fix: crash when curl is not installed

parent 63e88179
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment