mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-10-17 10:49:31 +00:00
fix package count showing as 1 when using an unsupported package manager
This commit is contained in:
1 parent
3d0cc3be21
commit
7ed24d4d77
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user