From a63c660f28a1fe8d40cf18966a6550028a2e3d10 Mon Sep 17 00:00:00 2001 From: "Emanuele \"Lele\" Calo" Date: Sun, 7 Apr 2024 02:07:30 +0200 Subject: [PATCH] Fix stderr redirection Seems that there's a problem in the Stdout/Stderr/Stdin vars assignments, probably copy-paste issue. --- pkg/gui/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, " ")))