Fix GitHub download failures (#1760)

* Github changed to only accept TLS 1.2 connections, this fixes the resulting failures.
This commit is contained in:
Dax T Games 2018-05-03 18:28:14 -04:00 committed by Benjamin Staneck
parent 4f3fcae9d9
commit a843e85c8b

View File

@ -200,6 +200,8 @@ function Download-File {
$Url,
$File
)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# I think this is the problem
$File = $File -Replace "/", "\"
Write-Verbose "Downloading from $Url to $File"