1
0

fix: no need to have separate case for debian anymore

This commit is contained in:
dump_stack() 2023-05-24 09:09:16 +00:00
parent bff4422098
commit ac4fcaaa91
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -6,7 +6,6 @@ import (
"os"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/cavaliergopher/grab/v3"
@ -191,11 +190,6 @@ type DistroListCmd struct{}
func (cmd *DistroListCmd) Run() (err error) {
for _, d := range distro.List() {
if d.ID == distro.Debian {
d.Release = fmt.Sprintf("%d %s",
debian.ReleaseFromString(d.Release),
strings.Title(d.Release))
}
fmt.Println(d.ID, d.Release)
}
return