kiss-hooks: show package name

This commit is contained in:
Dylan Araps 2021-07-14 19:09:20 +03:00
parent 06ace10d8a
commit 276ea50b77
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
# List all system-wide hooks
for hook in "$KISS_ROOT/var/db/kiss/hooks/"*; do
printf '%s\n' "${hook##*/}"
owner=$(kiss owns "$hook") 2>/dev/null ||:
printf '%s%s\n' "${owner:+"$owner "}" "${hook##*/}"
done