summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1
index 0536bb6c2..62ad4a0c0 100755
--- a/scripts/get.ps1
+++ b/scripts/get.ps1
@@ -38,7 +38,7 @@ param (
throw 'Unsupported platform'
}
- $temppath = ($env:TMP, $env:TEMP, "$(Get-Location)" -ne $null)[0]
+ $temppath = ([System.IO.Path]::GetTempPath(), $env:TMP, $env:TEMP, "$(Get-Location)" -ne $null)[0]
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
if ($null -eq $installdir -or $installdir -match '^\s*$') {