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)) }