mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-09 07:15:51 -05:00
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:
@@ -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 { `
|
||||
|
||||
Reference in New Issue
Block a user