From 4ffa813b214b53443dc976d2404189bbc5054abc Mon Sep 17 00:00:00 2001 From: Patrick-Ze <19711799+Patrick-Ze@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:40:45 +0800 Subject: get.ps1: Update method to get temp path --- scripts/get.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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*$') { -- cgit v1.3.1