mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Set default config in the correct place
This commit is contained in:
parent
edfc941e4f
commit
9b4264f346
1 changed files with 2 additions and 1 deletions
3
cmd.go
3
cmd.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue