diff --git a/pkg/powershell/shell.go b/pkg/powershell/shell.go index d4a8131a7..455f488f8 100644 --- a/pkg/powershell/shell.go +++ b/pkg/powershell/shell.go @@ -60,7 +60,7 @@ func (s *shell) Execute(cmd string) (string, string, error) { waiter.Add(2) go streamReader(s.stdout, outBoundary, &sout, waiter) //nolint:errcheck - go streamReader(s.stdout, outBoundary, &sout, waiter) //nolint:errcheck + go streamReader(s.stderr, errBoundary, &serr, waiter) //nolint:errcheck waiter.Wait()