mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 04:32:12 +00:00
Packages: Used better method for checking packages in eopkg (#669)
This commit is contained in:
2
neofetch
2
neofetch
@@ -468,7 +468,7 @@ get_packages() {
|
||||
packages="$((packages+=$(ls -d -1 /Programs/*/ | wc -l)))"
|
||||
|
||||
type -p eopkg >/dev/null && \
|
||||
packages="$((packages+=$(eopkg list-installed | wc -l)))"
|
||||
packages="$((packages+=$(ls -1 /var/lib/eopkg/package | wc -l)))"
|
||||
|
||||
type -p pkg_info >/dev/null && \
|
||||
packages="$((packages+=$(pkg_info | wc -l)))"
|
||||
|
||||
Reference in New Issue
Block a user