[tools] use the right parameter [backport:1.0] (#18957)

(cherry picked from commit b2873f0f63)
This commit is contained in:
flywind
2021-10-06 18:47:46 +08:00
committed by narimiran
parent 5bed375b52
commit 80c8107c56

View File

@@ -41,7 +41,7 @@ proc downloadMingw(): DownloadResult =
let curl = findExe"curl"
var cmd: string
if curl.len > 0:
cmd = quoteShell(curl) & " --out " & "dist" / mingw & " " & url
cmd = quoteShell(curl) & " --output " & "dist" / mingw & " " & url
elif fileExists"bin/nimgrab.exe":
cmd = r"bin\nimgrab.exe " & url & " dist" / mingw
if cmd.len > 0: