fix package count showing as 1 when using an unsupported package manager

This commit is contained in:
star kiwmi committed 2021-01-05 07:21:21 +10:00
1 parent 3d0cc3be21
commit 7ed24d4d77
1 file changed
+1 -2
+1 -2
View File
@@ -111,9 +111,8 @@ if [ -e /proc/$$/comm ]; then
for i in '/var/db/kiss/installed/*' '/var/lib/pacman/local/[0-9a-z]*' \
'/var/lib/dpkg/info/*.list' '/var/db/xbps/.*' '/var/db/pkg/*/*'; do
set -- $i
[ $# -gt 1 ] && break
[ $# -gt 1 ] && pkgs=$# && break
done
pkgs=${###0}
read -r host < /proc/sys/kernel/hostname
elif [ -f /var/run/dmesg.boot ]; then