Signed-off-by: Jguer <me@jguer.space>
This commit is contained in:
Jguer 2018-04-28 11:53:10 +01:00
parent 37b08eabf7
commit 58772c871b

View file

@ -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
}
}
}
}