diff --git a/scripts/common.ps1 b/scripts/common.ps1 index 61bd53d..3670017 100644 --- a/scripts/common.ps1 +++ b/scripts/common.ps1 @@ -43,7 +43,7 @@ function Invoke-Call { [scriptblock]$ScriptBlock, [string]$ErrorAction = $ErrorActionPreference ) - & @ScriptBlock 2>&1 3>&1 4>&1| ForEach-Object { "$_" } + & @ScriptBlock 2>&1 3>&1 4>&1 | ForEach-Object { "$_" } if (($lastexitcode -ne 0) -and $ErrorAction -eq "Stop") { Write-Error "Command $ScriptBlock exited with $lastexitcode." exit $lastexitcode