fix: no need to have separate case for debian anymore
This commit is contained in:
parent
bff4422098
commit
ac4fcaaa91
@ -6,7 +6,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cavaliergopher/grab/v3"
|
"github.com/cavaliergopher/grab/v3"
|
||||||
@ -191,11 +190,6 @@ type DistroListCmd struct{}
|
|||||||
|
|
||||||
func (cmd *DistroListCmd) Run() (err error) {
|
func (cmd *DistroListCmd) Run() (err error) {
|
||||||
for _, d := range distro.List() {
|
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)
|
fmt.Println(d.ID, d.Release)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user