1
0

Run bootstrap automatically on first run

This commit is contained in:
dump_stack() 2018-12-02 03:16:34 +00:00
parent bda5a5764a
commit b459f91a22

View File

@ -145,6 +145,15 @@ func main() {
handleFallbacks(kcfg) handleFallbacks(kcfg)
if !exists(usr.HomeDir + "/.out-of-tree") {
log.Println("First run, bootstrap...")
err = bootstrapHandler()
if err != nil {
log.Println("bootstrap error:", err)
}
return
}
switch kingpin.MustParse(app.Parse(os.Args[1:])) { switch kingpin.MustParse(app.Parse(os.Args[1:])) {
case pewCommand.FullCommand(): case pewCommand.FullCommand():
err = pewHandler(kcfg, *path, *pewKernel, *pewBinary, err = pewHandler(kcfg, *path, *pewKernel, *pewBinary,