summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2024-06-25 11:22:59 +0800
committerGitHub <[email protected]>2024-06-25 11:22:59 +0800
commit9c8a092f618514ebd9540b7b9d0e314697539ede (patch)
treeec113d57eb4e21f6a86cbd08d9e4b43b0b064647 /scripts
parent156461c8023fca5ebccb7f83fdb2ea6f4ad57c55 (diff)
parent4ffa813b214b53443dc976d2404189bbc5054abc (diff)
Merge pull request #5256 from Patrick-Ze/master
get.ps1: Update method to get temp path to avoid failure in 8.3 path #5255
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 071b2e9c6..797dbe801 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*$') {