diff --git a/spin/command.go b/spin/command.go index 9482b7f..582cfb0 100644 --- a/spin/command.go +++ b/spin/command.go @@ -46,7 +46,7 @@ func (o Options) Run() error { } if o.ShowOutput { - if !isTTY { + if isTTY { _, err := os.Stdout.WriteString(m.stdout) if err != nil { return fmt.Errorf("failed to write to stdout: %w", err)