diff --git a/cmd/cmd.go b/cmd/cmd.go index a44ed5c6..b8c9c640 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -1318,7 +1318,7 @@ func NewCLI() *cobra.Command { log.SetFlags(log.LstdFlags | log.Lshortfile) cobra.EnableCommandSorting = false - if runtime.GOOS == "windows" { + if runtime.GOOS == "windows" && term.IsTerminal(int(os.Stdout.Fd())) { console.ConsoleFromFile(os.Stdin) //nolint:errcheck }