mirror of
https://github.com/activecm/rita
synced 2026-06-08 13:02:45 +00:00
Skip upgrade check on view command when exporting
This commit is contained in:
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user