Skip to content

Commit 6e6bd8e

Browse files
musmvtjnash
authored andcommitted
Prevent download on windows picking up a rogue curl executable (#32412)
1 parent 8498695 commit 6e6bd8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/download.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function find_curl()
2828
"/usr/bin/curl"
2929
elseif Sys.iswindows() && Sys.isexecutable(joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\curl.exe"))
3030
joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\curl.exe")
31-
elseif Sys.which("curl") !== nothing
31+
elseif !Sys.iswindows() && Sys.which("curl") !== nothing
3232
"curl"
3333
else
3434
nothing

0 commit comments

Comments
 (0)