mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
Switch spinner TTY detection to stderr
This commit is contained in:
parent
a7e81aef73
commit
bc584d61fa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue