Browse Source

Merge kernels, not just append

master
dump_stack() 3 years ago
parent
commit
efe9ff6006
  1. 6
      main.go

6
main.go

@ -99,7 +99,11 @@ func main() {
log.Fatalln(err)
}
kcfg.Kernels = append(kcfg.Kernels, userKcfg.Kernels...)
for _, nk := range userKcfg.Kernels {
if !hasKernel(nk, kcfg) {
kcfg.Kernels = append(kcfg.Kernels, nk)
}
}
}
switch kingpin.MustParse(app.Parse(os.Args[1:])) {

Loading…
Cancel
Save