From 7e176284a7aef6e58258f2024b80ad28c91edd5b Mon Sep 17 00:00:00 2001 From: Takeya Yuki Date: Thu, 18 May 2017 14:47:02 +0800 Subject: [PATCH] Fix Some Bugs --- ascii/distro/{ks => kslinux} | 0 neofetch | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename ascii/distro/{ks => kslinux} (100%) diff --git a/ascii/distro/ks b/ascii/distro/kslinux similarity index 100% rename from ascii/distro/ks rename to ascii/distro/kslinux diff --git a/neofetch b/neofetch index a5502f38..10296eb9 100755 --- a/neofetch +++ b/neofetch @@ -102,8 +102,10 @@ get_distro() { elif type -p tazpkg >/dev/null; then distro="SliTaz $(< /etc/slitaz-release)" + elif type -p kpm > /dev/null; then distro="KSLinux" + elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then distro="Android $(getprop ro.build.version.release)" @@ -435,6 +437,7 @@ get_packages() { type -p dpkg >/dev/null && \ packages="$((packages+=$(dpkg --get-selections | grep -cv deinstall$)))" + type -p kpm >/dev/null && \ packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))" @@ -3077,7 +3080,7 @@ get_distro_colors() { "KSLinux"*) set_colors 4 7 1 - ascii_file="ks" + ascii_file="kslinux" ;; "Kubuntu"*) @@ -3385,7 +3388,7 @@ get_distro_colors() { ascii_file="void" ;; - *"[Windows 10]"* | *"on Windows 10"* | "Windows 8"* | "Windows 10"*) + *"[Windows 10]"* | *"on Windows 10"* | "Windows 8"* | "Windows 10"* | "windows10" | "windows8" ) set_colors 6 7 ascii_file="windows10" ;;