Fix PowerShell quoting in Windows container verification

Replace double-quoted string interpolation in throw statement
with -f format operator to prevent Docker RUN flattening from
stripping quotes and causing PowerShell parse errors.
This commit is contained in:
Vijay Janapa Reddi
2026-03-04 15:07:03 -05:00
parent c394766b98
commit 3fce198695

View File

@@ -307,7 +307,7 @@ RUN Write-Host '=== FINAL VERIFICATION ===' ; `
Write-Host "Checking $($tool.Name)..." ; `
try { `
$out = & $tool.Cmd $tool.Args 2>&1 | Select-Object -First 1 ; `
if ($LASTEXITCODE -ne 0) { throw "$($tool.Cmd) exited with $LASTEXITCODE" } ; `
if ($LASTEXITCODE -ne 0) { throw ('{0} exited with {1}' -f $tool.Cmd, $LASTEXITCODE) } ; `
Write-Host " $out" ; `
Write-Host "$($tool.Name) verified" ; `
} catch { `