Merge pull request #1 from yemouu/master

Add support for gentoo and fix shellcheck warning
This commit is contained in:
Gauge authored and GitHub committed 2020-07-28 13:09:38 +10:00
commit 09b31a1958
1 file changed
+9 -5
+9 -5
View File
@@ -2,9 +2,6 @@
#
# this is my attempt at trying to make a fetch using only posix shell
# and as little if none external utilities as I can.
#
# shellcheck disable=SC2034
#
## Terminal
@@ -34,14 +31,21 @@ done
# horribly inefficient, I know.
[ -d /var/lib/pacman/local ] && {
pkgs=0
for i in /var/lib/pacman/local/*; do
for _ in /var/lib/pacman/local/*; do
pkgs=$(( pkgs + 1 ))
done
}
[ -d /var/db/xbps ] && {
pkgs=0
for i in /var/db/xbps/*; do
for _ in /var/db/xbps/*; do
pkgs=$(( pkgs + 1 ))
done
}
[ -d /var/db/pkg ] && {
pkgs=0
for _ in /var/db/pkg/*/*; do
pkgs=$(( pkgs + 1 ))
done
}