diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-04-09 09:10:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 09:10:35 +0200 |
commit | 4ba85608c8f3f25051994d3a7dd45647f58b119c (patch) | |
tree | a957c7b88f19de13b0ba94af0421bb6c2fcec87b | |
parent | fab7ca2b58e9d4c60847f7a6d67e2124db9e94c4 (diff) | |
parent | a63c660f28a1fe8d40cf18966a6550028a2e3d10 (diff) |
Fix stderr redirection (#3479)
- **PR Description**
Seems that there's a problem in the Stdout/Stderr/Stdin stream vars
assignments,
probably copy-paste issue.
If this is intentional, I suggest adding an explanation on why `Stderr`
-> `Stdout` intentionally to avoid other PRs and confused people around
:)
Thanks!
-rw-r--r-- | pkg/gui/gui.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index a4579bc8c..8a17bb2c2 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -813,7 +813,7 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara subprocess := cmdObj.GetCmd() subprocess.Stdout = os.Stdout - subprocess.Stderr = os.Stdout + subprocess.Stderr = os.Stderr subprocess.Stdin = os.Stdin fmt.Fprintf(os.Stdout, "\n%s\n\n", style.FgBlue.Sprint("+ "+strings.Join(subprocess.Args, " "))) |