From 326a2b79d21d6f499369051c8690ffb4dcfe5adc Mon Sep 17 00:00:00 2001 From: e Date: Tue, 21 Jan 2025 17:10:31 -0500 Subject: [PATCH] fixed spinner --- pkg_manager/pkg_manager.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg_manager/pkg_manager.go b/pkg_manager/pkg_manager.go index 37bec1f..5ded3d0 100644 --- a/pkg_manager/pkg_manager.go +++ b/pkg_manager/pkg_manager.go @@ -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