fix config save

This commit is contained in:
shoopea 2024-11-17 16:39:00 +01:00
parent e7af7ce2fd
commit 6fcf8b421c

View File

@ -197,7 +197,7 @@ func (c *Config) Save() error {
r := pretty.Pretty(b) r := pretty.Pretty(b)
f, err := os.Open(*cfgFile) f, err := os.Create(*cfgFile)
if err != nil { if err != nil {
log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("") log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("")
return err return err