kiss-maintainers: Fix bugs

This commit is contained in:
Dylan Araps 2019-12-19 08:32:44 +00:00
parent edc9670ad3
commit d3cf21083f
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -1,8 +1,12 @@
#!/bin/sh -e
#!/bin/sh -ef
#
# kiss-maintainer - find the maintainer of a package.
kiss s "$1" >/dev/null && {
cd "$(kiss s "$1")"
git log . 2>/dev/null | grep -F Author: | sort -u
for repo in $(kiss s "$1"); do cd "$repo"
maintainers=$(git log . 2>/dev/null | grep -F Author: | sort -u)
[ "$maintainers" ] &&
printf '=> %s\n%s\n' "$PWD" "$maintainers"
done
}