mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-25 04:44:56 +00:00
Fix packages count for exherbo
Installed packages data is stored in /var/db/paludis/installed/data/* and the cross-installed packages data is stored in /var/db/paludis/cross-installed/arch/data/* where arch could be every cpu arch supported by exherbo.
This commit is contained in:
2
neofetch
2
neofetch
@@ -564,7 +564,7 @@ get_packages() {
|
||||
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
||||
|
||||
if type -p cave >/dev/null; then
|
||||
package_dir=(/var/db/paludis/repositories/{cross-installed,installed}/*/data/*)
|
||||
package_dir=(/var/db/paludis/repositories/{cross-installed/*,installed}/data/*)
|
||||
packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user