some fix
This commit is contained in:
@@ -47,7 +47,7 @@ func NewConfig() *Config {
|
||||
}
|
||||
|
||||
func genconf(c *cli.Context) error {
|
||||
f, err := os.OpenFile(c.String("config"), os.O_CREATE|os.O_WRONLY, 0644)
|
||||
f, err := os.OpenFile(c.String("config"), os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user