From 6fcf8b421c70f2032e6629ac45b4ed1652bd4921 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 17 Nov 2024 16:39:00 +0100 Subject: [PATCH] fix config save --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 59a062d..a0b9613 100644 --- a/config.go +++ b/config.go @@ -197,7 +197,7 @@ func (c *Config) Save() error { r := pretty.Pretty(b) - f, err := os.Open(*cfgFile) + f, err := os.Create(*cfgFile) if err != nil { log.WithFields(log.Fields{"error": err, "call": "os.Open"}).Errorf("") return err