ansible-role-kojihub/templates/opt/rocky-tools/who.sh

10 lines
295 B
Bash
Raw Permalink Normal View History

2020-12-23 19:46:25 +00:00
#!/bin/bash
# adapted from centos tools
for i in `koji list-tags $1*candidate`; do
USERS="$USERS `koji list-tagged --quiet $i | rev | cut -d " " -f 1 | rev | uniq | tr '\n' ' '`"
TMP=`echo ${i} | cut -d "-" -f 1`
SIG=${TMP%?}
done
echo $1:`echo $USERS|tr " " "\n"|sort|uniq|tr "\n" " "`