diff --git a/distro.go b/distro.go index 94f02fa..9c0f5ad 100644 --- a/distro.go +++ b/distro.go @@ -51,14 +51,17 @@ type DebianGetDebCmd struct { } func (cmd DebianGetDebCmd) Run() (err error) { + re, err := regexp.Compile(cmd.Regexp) + if err != nil { + log.Fatal().Err(err).Msg("regexp") + } + kernels, err := debian.GetKernels() if err != nil { log.Error().Err(err).Msg("") return } - re := regexp.MustCompile(cmd.Regexp) - var packages []snapshot.Package for _, kernel := range kernels { for _, pkg := range kernel.Packages() {