1
0

fix: do not match generic-pae

This commit is contained in:
dump_stack() 2023-05-22 06:56:12 +00:00
parent e1dd7c18be
commit d507b86373
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -55,7 +55,7 @@ func (u Ubuntu) Packages() (pkgs []string, err error) {
} }
cmd := "apt-cache search " + cmd := "apt-cache search " +
"--names-only '^linux-image-[0-9\\.\\-]*-generic' " + "--names-only '^linux-image-[0-9\\.\\-]*-generic$' " +
"| awk '{ print $1 }'" "| awk '{ print $1 }'"
output, err := c.Run(config.Dir("tmp"), cmd) output, err := c.Run(config.Dir("tmp"), cmd)