From 77596ea868d51d1828fcfbb378c81c52582fab75 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 22 Dec 2017 10:26:48 +1100 Subject: [PATCH] TDE: Better fix --- neofetch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index b719da29..18d81c3a 100755 --- a/neofetch +++ b/neofetch @@ -114,7 +114,8 @@ get_distro() { elif type -p tazpkg >/dev/null; then distro="SliTaz $(< /etc/slitaz-release)" - elif type -p kpt /dev/null && type -p kpm > /dev/null; then + elif type -p kpt >/dev/null && \ + type -p kpm >/dev/null; then distro="KSLinux" elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then @@ -543,8 +544,9 @@ get_packages() { type -p alps >/dev/null && \ packages="$((packages+=$(alps showinstalled | wc -l)))" - ` - [[ "$distro" == "KSLinux" ]] && type -p kpm >/dev/null && \ + + type -p kpt >/dev/null && \ + type -p kpm >/dev/null && \ packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))" if type -p cave >/dev/null; then