We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbe9754 commit 395d894Copy full SHA for 395d894
1 file changed
Tools/SandboxTest.ps1
@@ -528,7 +528,11 @@ if (!$SkipManifestValidation -and ![String]::IsNullOrWhiteSpace($Manifest)) {
528
Start-Sleep -Seconds 5 # Allow the user 5 seconds to read the warnings before moving on
529
}
530
default {
531
- Write-Information $validateCommandOutput.Trim() # On the success, print an empty line after the command output
+ # Avoid writing a raw object array when `winget validate` returns multiple lines
532
+ $validateSuccessOutput = @($validateCommandOutput).ForEach({ $_.ToString().Trim() }).Where({ -not [String]::IsNullOrWhiteSpace($_) })
533
+ if ($validateSuccessOutput) {
534
+ Write-Information ($validateSuccessOutput -join [Environment]::NewLine)
535
+ }
536
537
538
0 commit comments