From 8aab756a153e4a19e72aa765ebdc3dec9040f23d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 7 Jan 2019 19:48:05 +0200 Subject: [PATCH] packages: Don't run pkginfo on linux --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 3b56ea56..a0b2454d 100755 --- a/neofetch +++ b/neofetch @@ -1289,7 +1289,6 @@ get_packages() { has "sorcery" && tot gaze installed has "alps" && tot alps showinstalled has "butch" && tot butch list - has "pkginfo" && tot pkginfo -i # Counting files/dirs. has "emerge" && dir /var/db/pkg/*/*/ @@ -1305,6 +1304,9 @@ get_packages() { # Other (Needs complex command) has "kpm-pkg" && ((packages+="$(kpm --get-selections | grep -cv deinstall$)")) + # pkginfo is also the name of a python package manager. + [[ $os != "Linux" ]] && has "pkginfo" && tot pkginfo -i + case "$kernel_name" in "FreeBSD") has "pkg" && tot pkg info ;; *)