1 2 3 4 5 6 7
#!/bin/sh [ -n "$*" ] || exit 1 set -e gpg --check-sigs --with-colon "$@" |\ awk -F: '$1 == "sig" && $2 == "?" { print $5 }' |\ sort | uniq | xargs gpg --recv-keys