mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-19 02:17:12 +00:00
packages: Don't run pkginfo on linux
This commit is contained in:
4
neofetch
4
neofetch
@@ -1289,7 +1289,6 @@ get_packages() {
|
|||||||
has "sorcery" && tot gaze installed
|
has "sorcery" && tot gaze installed
|
||||||
has "alps" && tot alps showinstalled
|
has "alps" && tot alps showinstalled
|
||||||
has "butch" && tot butch list
|
has "butch" && tot butch list
|
||||||
has "pkginfo" && tot pkginfo -i
|
|
||||||
|
|
||||||
# Counting files/dirs.
|
# Counting files/dirs.
|
||||||
has "emerge" && dir /var/db/pkg/*/*/
|
has "emerge" && dir /var/db/pkg/*/*/
|
||||||
@@ -1305,6 +1304,9 @@ get_packages() {
|
|||||||
# Other (Needs complex command)
|
# Other (Needs complex command)
|
||||||
has "kpm-pkg" && ((packages+="$(kpm --get-selections | grep -cv deinstall$)"))
|
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
|
case "$kernel_name" in
|
||||||
"FreeBSD") has "pkg" && tot pkg info ;;
|
"FreeBSD") has "pkg" && tot pkg info ;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user