From 6e6bd8e54a01f3d79cc0af36b3ffb1ae34f8bcd8 Mon Sep 17 00:00:00 2001 From: Mustafa M Date: Fri, 28 Jun 2019 10:55:14 -0400 Subject: [PATCH] Prevent download on windows picking up a rogue curl executable (#32412) --- base/download.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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