diff options
| author | OpportunityLiu <[email protected]> | 2019-06-06 18:11:02 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-06 18:11:02 +0800 |
| commit | f626059565d8a99d963b64927800d4d2e0020c73 (patch) | |
| tree | f1cf4cec935705b965ee2c4e39d11995eb54dad6 /scripts | |
| parent | 7cac3d417c9eb0218669bc3c3b5ef390ff492c64 (diff) | |
fix
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/get.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
