Skip to content

Commit

Permalink
Fix quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Mar 15, 2024
1 parent 701a92f commit 702108f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Write-Output "But it shouldn't break progress bar rendering"
}
$task1.Increment(50)
Write-SpectreHost ($value | Get-SpectreEscapedText)
return $value
}
#>
function Invoke-SpectreScriptBlockQuietly {
Expand All @@ -45,7 +45,8 @@ function Invoke-SpectreScriptBlockQuietly {

switch ($Level) {
"Quiet" {
return ($job | Receive-Job 2>&1)
$output = $job | Receive-Job 2>$null
return $output
}
"Quieter" {
return
Expand Down

0 comments on commit 702108f

Please sign in to comment.