Skip to content

Commit

Permalink
fix(core): Redirect 'StandardError' in Invoke-ExternalCommand (Scoo…
Browse files Browse the repository at this point in the history
  • Loading branch information
niheaven authored and se35710 committed Mar 8, 2022
1 parent f65cb18 commit c261b37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ function Invoke-ExternalCommand {
}
if ($LogPath -and ($FilePath -notmatch '(^|\W)msiexec($|\W)')) {
Out-File -FilePath $LogPath -Encoding ASCII -Append -InputObject $Process.StandardOutput.ReadToEnd()
Out-File -FilePath $LogPath -Encoding ASCII -Append -InputObject $Process.StandardError.ReadToEnd()
}
$Process.WaitForExit()
if ($Process.ExitCode -ne 0) {
Expand Down

0 comments on commit c261b37

Please sign in to comment.