Added support for KaOS

This commit is contained in:
Dylan 2016-02-15 12:39:02 +11:00
parent 362ae7b9d0
commit 0f0806ca06
2 changed files with 26 additions and 1 deletions

18
ascii/distro/kaos Normal file
View File

@ -0,0 +1,18 @@
"\
${c1} ████████ ████████
${c1} ██████ ██████
${c1} ████ ████
${c1} █ █
${c1} █
${c1} █ ${c2} ████████ ████████
${c1} █ ${c2} ██████ ██████
${c1} █ ${c2} ████ ████
${c1} █ ${c2} █ █
${c1} █ ${c2} █
${c1} ${c3}███████ ███████
${c1} ${c3} █████ █████${c2} █
${c1} █${c3} ███ ███ ${c2} █
${c1} █ ${c3} █ ${c2} █
${c1} █ ${c3}█ ${c2} █
${c1} █ ${c3}█ ${c2} █
"

9
fetch
View File

@ -424,8 +424,9 @@ x32="x86"
case "$os" in case "$os" in
"Linux" ) "Linux" )
if type -p lsb_release >/dev/null 2>&1; then if type -p lsb_release >/dev/null 2>&1; then
distro="$(lsb_release -a 2>/dev/null | awk -F':' '/Description/ {printf $2}')" distro="$(lsb_release -d 2>/dev/null | awk -F':' '/Description/ {printf $2}')"
distro=${distro/[[:space:]]} distro=${distro/[[:space:]]}
elif type -p crux >/dev/null 2>&1; then elif type -p crux >/dev/null 2>&1; then
distro="CRUX" distro="CRUX"
else else
@ -1637,6 +1638,12 @@ getascii () {
c2=$(color 8) c2=$(color 8)
;; ;;
"KaOS"*)
c1=$(color 4)
c2=$(color 7)
c3=$(color 1)
;;
"Mac OS X"* | "Manjaro"* | "Deepin"*) "Mac OS X"* | "Manjaro"* | "Deepin"*)
c1=$(color 2) c1=$(color 2)
c2=$(color 3) c2=$(color 3)