1
0

Merge kernels, not just append

This commit is contained in:
dump_stack() 2018-12-01 17:13:38 +00:00
parent d001a054f4
commit efe9ff6006

View File

@ -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:])) {