Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cmd/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ var ViewCommand = &cli.Command{
return err
}

// check for updates after running the command
if err := CheckForUpdate(cfg); err != nil {
return err
// check for updates after running the command, skip if using output flag
if !cCtx.Bool("stdout") {
if err := CheckForUpdate(cfg); err != nil {
return err
}
}

return nil
Expand Down