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