fix: proper icons get

This commit is contained in:
Paulo 2023-07-20 11:35:02 -03:00
parent fe5f2f60d6
commit 9a3b7c68f1
Signed by: pauloo27
GPG Key ID: 079BC1BF4562F663
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ const (
)
func getOsIcon(name string) string {
switch strings.ToLower(name) {
case "arch linux":
switch strings.Split(strings.ToLower(name), " ")[0] {
case "arch":
return OsArchIcon
case "fedora":
return OsFedoraIcon