Merge kernels, not just append
This commit is contained in:
parent
d001a054f4
commit
efe9ff6006
6
main.go
6
main.go
@ -99,7 +99,11 @@ func main() {
|
|||||||
log.Fatalln(err)
|
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:])) {
|
switch kingpin.MustParse(app.Parse(os.Args[1:])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user