Compare commits

...

1 Commits

Author SHA1 Message Date
Ethan c24a7dc78d kiss-stray: new utility to list 'stray' files
Lists files that have no owner - its addition is due to changes in
'kiss-preferred'
2022-08-19 11:02:28 -05:00
1 changed files with 7 additions and 0 deletions

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'"