Ascii: Add _value variants to get_distro_colors()

This commit is contained in:
Dylan Araps 2017-01-02 17:30:43 +11:00
parent 4a5d1b7e8a
commit 484a306831

View file

@ -2489,6 +2489,16 @@ get_distro_colors() {
# #
# $ascii_distro is the same as $distro. # $ascii_distro is the same as $distro.
case "$ascii_distro" in case "$ascii_distro" in
"arch_small")
set_colors 4 7 1
ascii_file="arch_small"
;;
"arch_old")
set_colors 4 7 1
ascii_file="arch_old"
;;
"Arch"*) "Arch"*)
set_colors 4 7 1 set_colors 4 7 1
ascii_file="arch" ascii_file="arch"
@ -2634,6 +2644,11 @@ get_distro_colors() {
ascii_file="salentos" ascii_file="salentos"
;; ;;
"crux_small")
set_colors 4 5 7 6
ascii_file="crux_small"
;;
"CRUX"*) "CRUX"*)
set_colors 4 5 7 6 set_colors 4 5 7 6
ascii_file="crux" ascii_file="crux"
@ -2684,6 +2699,11 @@ get_distro_colors() {
ascii_file="debian" ascii_file="debian"
;; ;;
"ubuntu_old")
set_colors 1 7 3
ascii_file="ubuntu_old"
;;
"Ubuntu"*) "Ubuntu"*)
set_colors 1 7 3 set_colors 1 7 3
ascii_file="ubuntu" ascii_file="ubuntu"
@ -2800,11 +2820,21 @@ get_distro_colors() {
ascii_file="devuan" ascii_file="devuan"
;; ;;
"gentoo_small")
set_colors 5 7
ascii_file="gentoo_small"
;;
"Gentoo"*) "Gentoo"*)
set_colors 5 7 set_colors 5 7
ascii_file="gentoo" ascii_file="gentoo"
;; ;;
"openbsd_small")
set_colors 3 7 6 1 8
ascii_file="openbsd_small"
;;
"OpenBSD"*) "OpenBSD"*)
set_colors 3 7 6 1 8 set_colors 3 7 6 1 8
ascii_file="openbsd" ascii_file="openbsd"