Fix powershell TLS issue with download
This commit is contained in:
parent
5e212ce606
commit
fc1bc78250
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ proc downloadUrl*(url, outdir: string) =
|
|||
echo "Downloading " & file
|
||||
mkDir(outdir)
|
||||
var cmd = if defined(Windows):
|
||||
"powershell wget $# -OutFile $#"
|
||||
"powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget $# -OutFile $#"
|
||||
else:
|
||||
"curl $# -o $#"
|
||||
discard execAction(cmd % [url, outdir/file])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue