Skip to content

Commit

Permalink
Merge pull request #5256 from Patrick-Ze/master
Browse files Browse the repository at this point in the history
get.ps1: Update method to get temp path to avoid failure in 8.3 path #5255
  • Loading branch information
waruqi committed Jun 25, 2024
2 parents 156461c + 4ffa813 commit 9c8a092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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*$') {
Expand Down

0 comments on commit 9c8a092

Please sign in to comment.