Skip to content

Commit

Permalink
Prevent download on windows picking up a rogue curl executable (#32412)
Browse files Browse the repository at this point in the history
  • Loading branch information
musm authored and vtjnash committed Jun 28, 2019
1 parent 8498695 commit 6e6bd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/download.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function find_curl()
"/usr/bin/curl"
elseif Sys.iswindows() && Sys.isexecutable(joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\curl.exe"))
joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\curl.exe")
elseif Sys.which("curl") !== nothing
elseif !Sys.iswindows() && Sys.which("curl") !== nothing
"curl"
else
nothing
Expand Down

0 comments on commit 6e6bd8e

Please sign in to comment.