diff --git a/base/download.jl b/base/download.jl index 1f5487d943195..63ae232167624 100644 --- a/base/download.jl +++ b/base/download.jl @@ -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