Set default config in the correct place

This commit is contained in:
morganamilo 2018-03-07 16:26:15 +00:00
parent edfc941e4f
commit 9b4264f346
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

3
cmd.go
View file

@ -89,6 +89,8 @@ func initPaths() {
}
func initConfig() (err error) {
defaultSettings(&config)
if _, err = os.Stat(configFile); os.IsNotExist(err) {
err = os.MkdirAll(filepath.Dir(configFile), 0755)
if err != nil {
@ -114,7 +116,6 @@ func initConfig() (err error) {
}
}
defaultSettings(&config)
return
}