forked from kiss-community/kiss
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"
|
cd "$KISS_ROOT/var/db/kiss/installed"
|
||||||
|
|
||||||
for pkg in *; do
|
kiss s * | while read -r path; do
|
||||||
i=1
|
pkg=${path##*/}
|
||||||
|
|
||||||
kiss s "$pkg" | while read -r line; do
|
case $seen in *" $pkg "*)
|
||||||
case $i-$line in ("1-$PWD/$pkg")
|
continue
|
||||||
printf '%s\n' "$pkg"
|
esac
|
||||||
continue
|
|
||||||
esac
|
|
||||||
|
|
||||||
i=$((i + 1))
|
case $path in "$PWD/$pkg")
|
||||||
done
|
printf '%s\n' "$pkg"
|
||||||
|
esac
|
||||||
|
|
||||||
|
seen="$seen $pkg "
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user