From 9b5c252cfd21d19bacdea2afb2782e42aa06c513 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 12 Apr 2016 11:17:21 +1000 Subject: [PATCH] Fixes #221 --- neofetch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 07ecf94f..34de4463 100755 --- a/neofetch +++ b/neofetch @@ -640,12 +640,12 @@ getuptime () { getpackages () { case "$os" in "Linux") - if type -p dpkg >/dev/null 2>&1; then - packages="$(dpkg --get-selections | grep -cv deinstall$)" - - elif type -p pacman >/dev/null 2>&1; then + if type -p pacman >/dev/null 2>&1; then 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 packages="$(ls -1 /var/log/packages | wc -l)"