Fixes #221
This commit is contained in:
parent
40f9318074
commit
9b5c252cfd
1 changed files with 4 additions and 4 deletions
8
neofetch
8
neofetch
|
@ -640,12 +640,12 @@ getuptime () {
|
||||||
getpackages () {
|
getpackages () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux")
|
"Linux")
|
||||||
if type -p dpkg >/dev/null 2>&1; then
|
if type -p pacman >/dev/null 2>&1; then
|
||||||
packages="$(dpkg --get-selections | grep -cv deinstall$)"
|
|
||||||
|
|
||||||
elif type -p pacman >/dev/null 2>&1; then
|
|
||||||
packages="$(pacman -Qq --color never | wc -l)"
|
packages="$(pacman -Qq --color never | wc -l)"
|
||||||
|
|
||||||
|
elif type -p dpkg >/dev/null 2>&1; then
|
||||||
|
packages="$(dpkg --get-selections | grep -cv deinstall$)"
|
||||||
|
|
||||||
elif type -p /sbin/pkgtool >/dev/null 2>&1; then
|
elif type -p /sbin/pkgtool >/dev/null 2>&1; then
|
||||||
packages="$(ls -1 /var/log/packages | wc -l)"
|
packages="$(ls -1 /var/log/packages | wc -l)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue