Fix inaccurated arch package count (Solves #19)

This commit is contained in:
GaugeK
2020-08-24 02:46:19 +10:00
parent 33d1029e8b
commit 71afae542c
+1 -1
View File
@@ -91,7 +91,7 @@ if [ -e /proc/$$/comm ]; then
# then save the argument count to $pkgs
set --
[ -d /var/db/kiss/installed ] && set -- /var/db/kiss/installed/*
[ -d /var/lib/pacman/local ] && set -- /var/lib/pacman/local/*
[ -d /var/lib/pacman/local ] && set -- /var/lib/pacman/local/[0-9a-z]*
[ -d /var/db/xbps ] && set -- /var/db/xbps/.*
[ -d /var/db/pkg ] && set -- /var/db/pkg/*/* # gentoo
pkgs=${###0}