mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04: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
|
s.spinFunc = spinTTY
|
||||||
|
|
||||||
if !(writer == os.Stdout && tty.IsTerminal(os.Stdout.Fd())) {
|
if !(writer == os.Stderr && tty.IsTerminal(os.Stderr.Fd())) {
|
||||||
s.spinFunc = spinNoTTY
|
s.spinFunc = spinNoTTY
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user