From bc584d61fa85ff14e63a7f86b69f907c45955197 Mon Sep 17 00:00:00 2001 From: Nils Hanke Date: Thu, 10 Nov 2022 17:07:45 +0100 Subject: [PATCH] Switch spinner TTY detection to stderr --- cli/internal/cmd/spinner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/internal/cmd/spinner.go b/cli/internal/cmd/spinner.go index 96567d4f7..ad321054c 100644 --- a/cli/internal/cmd/spinner.go +++ b/cli/internal/cmd/spinner.go @@ -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 }