mirror of https://github.com/ospab/ostp.git
Fix: Resolve PowerShell parser error in install.ps1 by wrapping interpolated arch variable in curly braces before colon delimiter.
This commit is contained in:
parent
c1bbaec842
commit
0642cbde06
|
|
@ -43,7 +43,7 @@ $url = "https://github.com/$repo/releases/download/$tag/$archive"
|
||||||
$zipPath = Join-Path $env:TEMP "ostp_temp_$($PID).zip"
|
$zipPath = Join-Path $env:TEMP "ostp_temp_$($PID).zip"
|
||||||
$extractPath = Join-Path $env:TEMP "ostp_extract_$($PID)"
|
$extractPath = Join-Path $env:TEMP "ostp_extract_$($PID)"
|
||||||
|
|
||||||
Write-Host "Downloading asset windows-$arch: $url ..."
|
Write-Host "Downloading asset windows-${arch}: $url ..."
|
||||||
Invoke-WebRequest -Uri $url -OutFile $zipPath
|
Invoke-WebRequest -Uri $url -OutFile $zipPath
|
||||||
|
|
||||||
if (-not (Test-Path $zipPath)) {
|
if (-not (Test-Path $zipPath)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue