mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-16 09:57:07 -05:00
Switch spinner TTY detection to stderr
This commit is contained in:
parent
a7e81aef73
commit
bc584d61fa
@ -51,7 +51,7 @@ func newSpinner(writer io.Writer) *spinner {
|
||||
|
||||
s.spinFunc = spinTTY
|
||||
|
||||
if !(writer == os.Stdout && tty.IsTerminal(os.Stdout.Fd())) {
|
||||
if !(writer == os.Stderr && tty.IsTerminal(os.Stderr.Fd())) {
|
||||
s.spinFunc = spinNoTTY
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user