summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Reilly <[email protected]>2019-04-13 11:49:28 +0100
committerPaul Reilly <[email protected]>2019-04-13 11:49:28 +0100
commitc2a04219cf41346bfa2f4871eda8915d43f38f09 (patch)
tree6c98422b34c8ae88bdfafebe9b1f37c0b8a1dee6 /scripts
parentf4781b3cbc4d8e61eddb888ea4e7d258adc70c5b (diff)
fix powershell script download
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get.ps11
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index f81863994..7774e685a 100644
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -49,6 +49,7 @@ try{
}
Write-Host "Start downloading https://github.com/xmake-io/xmake/releases/download/$version/xmake-$branch.exe .."
try{
+ [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
Invoke-Webrequest "https://github.com/xmake-io/xmake/releases/download/$version/xmake-$branch.exe" -OutFile "$outfile"
}catch{
writeErrorTip 'Download failed!'