Packages: Used better method for checking packages in eopkg (#669)
This commit is contained in:
parent
e8bdd31b46
commit
0c03845100
2
neofetch
2
neofetch
|
@ -468,7 +468,7 @@ get_packages() {
|
||||||
packages="$((packages+=$(ls -d -1 /Programs/*/ | wc -l)))"
|
packages="$((packages+=$(ls -d -1 /Programs/*/ | wc -l)))"
|
||||||
|
|
||||||
type -p eopkg >/dev/null && \
|
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 && \
|
type -p pkg_info >/dev/null && \
|
||||||
packages="$((packages+=$(pkg_info | wc -l)))"
|
packages="$((packages+=$(pkg_info | wc -l)))"
|
||||||
|
|
Reference in New Issue