Follow redirects in downloadUrl
This commit is contained in:
parent
7611093750
commit
afc9991002
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ proc downloadUrl*(url, outdir: string) =
|
||||||
var cmd = if defined(Windows):
|
var cmd = if defined(Windows):
|
||||||
"powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget $# -OutFile $#"
|
"powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget $# -OutFile $#"
|
||||||
else:
|
else:
|
||||||
"curl $# -o $#"
|
"curl -L $# -o $#"
|
||||||
discard execAction(cmd % [url, (outdir/file).quoteShell])
|
discard execAction(cmd % [url, (outdir/file).quoteShell])
|
||||||
|
|
||||||
if ext == ".zip":
|
if ext == ".zip":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue