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