summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPatrick-Ze <[email protected]>2024-06-25 10:40:45 +0800
committerGitHub <[email protected]>2024-06-25 10:40:45 +0800
commit4ffa813b214b53443dc976d2404189bbc5054abc (patch)
tree99264e85d721e5f227fa2bf2fef6954cfe61abb9 /scripts
parent9eb191fc028f32d71de393cd2a46df7fc076bf4b (diff)
get.ps1: Update method to get temp path
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*$') {