Using Write-Output instead of Write-Host since PS v5 now leaks the host stream to stderr
This commit is contained in:
parent
fe8d99fd8a
commit
c42cb88ddd
|
@ -72,7 +72,7 @@ function SlurpOutput($l) {
|
|||
if (Test-Path $log) {
|
||||
Get-Content $log | select -skip $l | ForEach {
|
||||
$l += 1
|
||||
Write-Host "$_"
|
||||
Write-Output "$_"
|
||||
}
|
||||
}
|
||||
return $l
|
||||
|
|
Loading…
Reference in New Issue