Move bootstrap before kernels check
This commit is contained in:
parent
b459f91a22
commit
cf0e5efe18
18
main.go
18
main.go
@ -123,6 +123,15 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
if !exists(usr.HomeDir + "/.out-of-tree") {
|
||||
log.Println("First run, bootstrap...")
|
||||
err = bootstrapHandler()
|
||||
if err != nil {
|
||||
log.Println("bootstrap error:", err)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
kingpin.MustParse(app.Parse(os.Args[1:]))
|
||||
|
||||
kcfg, err := config.ReadKernelConfig(*kcfgPath)
|
||||
@ -145,15 +154,6 @@ 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