fixed spinner

This commit is contained in:
e 2025-01-21 17:10:31 -05:00
parent 3675da2acd
commit 326a2b79d2

View File

@ -2,6 +2,7 @@ package pkg_manager
import (
"fmt"
"io"
"os"
"os/exec"
"strings"
@ -294,9 +295,9 @@ func (m *Manager) execCommand(baseCmd []string, args ...string) error {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
} else {
// Capture but don't display output in quiet mode
cmd.Stdout = nil
cmd.Stderr = nil
// Discard output in quiet mode
cmd.Stdout = io.Discard
cmd.Stderr = io.Discard
}
cmd.Stdin = os.Stdin