mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-24 20:21:39 +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]*' \
|
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
|
'/var/lib/dpkg/info/*.list' '/var/db/xbps/.*' '/var/db/pkg/*/*'; do
|
||||||
set -- $i
|
set -- $i
|
||||||
[ $# -gt 1 ] && break
|
[ $# -gt 1 ] && pkgs=$# && break
|
||||||
done
|
done
|
||||||
pkgs=${###0}
|
|
||||||
|
|
||||||
read -r host < /proc/sys/kernel/hostname
|
read -r host < /proc/sys/kernel/hostname
|
||||||
elif [ -f /var/run/dmesg.boot ]; then
|
elif [ -f /var/run/dmesg.boot ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user