Skip to content

Commit c261b37

Browse files
niheavense35710
authored andcommitted
fix(core): Redirect 'StandardError' in Invoke-ExternalCommand (ScoopInstaller#4570)
1 parent f65cb18 commit c261b37

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/core.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ function Invoke-ExternalCommand {
435435
}
436436
if ($LogPath -and ($FilePath -notmatch '(^|\W)msiexec($|\W)')) {
437437
Out-File -FilePath $LogPath -Encoding ASCII -Append -InputObject $Process.StandardOutput.ReadToEnd()
438+
Out-File -FilePath $LogPath -Encoding ASCII -Append -InputObject $Process.StandardError.ReadToEnd()
438439
}
439440
$Process.WaitForExit()
440441
if ($Process.ExitCode -ne 0) {

0 commit comments

Comments
 (0)