finish.nim: make it work with spaces in the path to curl

This commit is contained in:
Araq
2017-12-02 00:57:13 +01:00
parent d27c0b2192
commit 82870058d3

View File

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