summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get.ps12
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 {