From f626059565d8a99d963b64927800d4d2e0020c73 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Thu, 6 Jun 2019 18:11:02 +0800 Subject: fix --- scripts/get.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 968b2e7d4..3b31701dc 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -35,7 +35,7 @@ if ($PSVersionTable.PSVersion.Major -lt 5) { writeErrorTip 'Sorry but PowerShell v5+ is required' throw 'PowerShell''s version too low' } -$temppath = ($null -ne $env:TMP, $env:TEMP, '.')[0] +$temppath = ($env:TMP, $env:TEMP, '.' -ne $null)[0] [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" function checkTempAccess { -- cgit v1.3.1