From 77f88afd7a44e7d2ff11230692cc2fcf7724065d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 26 Aug 2026 16:58:51 -0500 Subject: [PATCH] build.ps1: emit plain strings instead of Format-Table objects Format-Table writes format-descriptor objects, not text, so piping the script through Select-Object or Out-String broke the stream and made the script exit 1 after a successful build. Co-Authored-By: Claude Opus 5 --- scripts/build.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 39e7d9a..ba937fc 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -61,4 +61,7 @@ Get-ChildItem $OutDir -File | Set-Content -Path (Join-Path $OutDir "SHA256SUMS") -Encoding utf8 Write-Host "" -Get-ChildItem $OutDir | Format-Table Name, @{N = "MB"; E = { [math]::Round($_.Length / 1MB, 1) } } +# Emit plain strings, not format objects: Format-Table output breaks if the +# caller pipes this script through Select-Object or Out-String. +Get-ChildItem $OutDir -File | + ForEach-Object { Write-Host ("{0,-40} {1,6:N1} MB" -f $_.Name, ($_.Length / 1MB)) }