fix: add check for shutdown request
This commit is contained in:
parent
7d28549db7
commit
4441e84063
@ -316,6 +316,10 @@ func (cmd *KernelGenallCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
|
|||||||
kernel.SetSigintHandler(&kernelCmd.shutdown)
|
kernel.SetSigintHandler(&kernelCmd.shutdown)
|
||||||
|
|
||||||
for _, dist := range distro.List() {
|
for _, dist := range distro.List() {
|
||||||
|
if kernelCmd.shutdown {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
if distroType != distro.None && distroType != dist.ID {
|
if distroType != distro.None && distroType != dist.ID {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user