Switch spinner TTY detection to stderr

This commit is contained in:
Nils Hanke 2022-11-10 17:07:45 +01:00 committed by Nils Hanke
parent a7e81aef73
commit bc584d61fa

View File

@ -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
}