Run bootstrap automatically on first run
This commit is contained in:
parent
bda5a5764a
commit
b459f91a22
9
main.go
9
main.go
@ -145,6 +145,15 @@ func main() {
|
||||
|
||||
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:])) {
|
||||
case pewCommand.FullCommand():
|
||||
err = pewHandler(kcfg, *path, *pewKernel, *pewBinary,
|
||||
|
Loading…
Reference in New Issue
Block a user