kiss-stray: new utility to list 'stray' files

Lists files that have no owner - its addition is due to changes in
'kiss-preferred'
This commit is contained in:
Ethan 2022-08-19 11:02:28 -05:00
parent 2e7e04a537
commit c24a7dc78d

7
contrib/kiss-stray Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# Return a list of files that have no package owner.
kiss alternatives \
| cut -d' ' -f2 \
| xargs -I{} -P0 \
sh -c "owner=\$(kiss owns {}); [ \$owner ] || printf 'warning: {} has no owner\n'"