mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
parent
37b08eabf7
commit
58772c871b
1 changed files with 8 additions and 0 deletions
8
main.go
8
main.go
|
@ -60,6 +60,14 @@ func initConfig() (err error) {
|
|||
err)
|
||||
defaultSettings(&config)
|
||||
}
|
||||
if _, err = os.Stat(config.BuildDir); os.IsNotExist(err) {
|
||||
err = os.MkdirAll(config.BuildDir, 0755)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Unable to create BuildDir directory:\n%s\n"+
|
||||
"The error was:\n%s", config.BuildDir, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue