mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-10-16 10:39:31 +00:00
Add support for gentoo and fix shellcheck warning
This commit is contained in:
1 file changed
+9
-5
+9
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user