mirror of
https://github.com/Jguer/yay.git
synced 2025-12-15 00:05:43 -05:00
Set default config in the correct place
This commit is contained in:
parent
edfc941e4f
commit
9b4264f346
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…
x
Reference in New Issue
Block a user