aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/update.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/update.go b/cmd/update.go
index 1c88bc5..0714abe 100644
--- a/cmd/update.go
+++ b/cmd/update.go
@@ -6,7 +6,6 @@ import (
"github.com/spf13/cobra"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
- "os"
"time"
)
@@ -31,13 +30,12 @@ var updateCmd = &cobra.Command{
// custom sync config
config := nvdmirror.SyncConfig {
Cve11BaseUrl: "https://pmdn.org/nvdmirror",
+ CpeMatch10BaseUrl: "https://pmdn.org/nvdmirror",
+ Cpe23DictUrl: "https://pmdn.org/nvdmirror",
}
- // sync data
- if err := nvdmirror.Sync(config, &cache, "stuff"); err != nil {
- log.Error().Err(err).Msg("Sync")
- os.Exit(-1)
- }
+ // sync data, get changed data
+ nvdmirror.Sync(config, &cache, "stuff")
},
}