Skip upgrade check on view command when exporting

This commit is contained in:
Naomi Kramer
2026-06-03 10:43:22 -04:00
parent 6d04bf5d89
commit 035caf059d
+5 -3
View File
@@ -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