mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-23 07:30:16 -07:00
kiss-repo-orphans: call kiss once
This commit is contained in:
parent
98b3f4ab6a
commit
1ea02cc354
@ -3,15 +3,18 @@
|
||||
|
||||
cd "$KISS_ROOT/var/db/kiss/installed"
|
||||
|
||||
for pkg in *; do
|
||||
i=1
|
||||
kiss s * | while read -r path; do
|
||||
pkg=${path##*/}
|
||||
|
||||
kiss s "$pkg" | while read -r line; do
|
||||
case $i-$line in ("1-$PWD/$pkg")
|
||||
printf '%s\n' "$pkg"
|
||||
continue
|
||||
esac
|
||||
case $seen in *" $pkg "*)
|
||||
continue
|
||||
esac
|
||||
|
||||
i=$((i + 1))
|
||||
done
|
||||
case $path in "$PWD/$pkg")
|
||||
printf '%s\n' "$pkg"
|
||||
esac
|
||||
|
||||
seen="$seen $pkg "
|
||||
done
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user