fix config save
This commit is contained in:
parent
e7af7ce2fd
commit
6fcf8b421c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user