aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-12-19 08:32:43 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-12-19 08:32:43 +0000
commitbb74b3d77bf408a63be41dde1bbc60ea3222ee91 (patch)
tree2c35f3ba3f9f631ace1cbe11f766ed3921dc356e /contrib
parent6818c0d32fd413610a7a19f20663420a35d84d6a (diff)
downloadcpt-bb74b3d77bf408a63be41dde1bbc60ea3222ee91.tar.gz
kiss-maintainers: Fix bugs
FossilOrigin-Name: a092ea83407a5ba72dc03e676435109afde93015a72ad0db1f9357326294cad2
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/kiss-maintainer10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/kiss-maintainer b/contrib/kiss-maintainer
index a8bc19c..55bcc5e 100755
--- a/contrib/kiss-maintainer
+++ b/contrib/kiss-maintainer
@@ -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
}