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