Using Write-Output instead of Write-Host since PS v5 now leaks the host stream to stderr

This commit is contained in:
Taliesin Sisson 2015-11-02 17:23:51 +00:00 committed by Taliesin Sisson
parent fe8d99fd8a
commit c42cb88ddd
1 changed files with 1 additions and 1 deletions

View File

@ -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