ensure existing config file is removed prior to writing

This commit is contained in:
Bradley Cicenas
2020-10-26 13:04:00 +00:00
parent c0703db094
commit 2fdbb91f87
2 changed files with 10 additions and 1 deletions

View File

@@ -65,7 +65,9 @@ func main() {
// init global config and read config file if exists
config.Init()
config.Read()
if err := config.Read(); err != nil {
log.Warningf("reading config: %s", err)
}
// override default config values with command line flags
if *filterFlag != "" {