mirror of
https://github.com/Jguer/yay
synced 2024-08-31 05:39:29 +00:00
parent
37b08eabf7
commit
58772c871b
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