fixed spinner
This commit is contained in:
parent
3675da2acd
commit
326a2b79d2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user