blob: a248e2fa6a9a2693ee381c6df41ee7edaeecc42c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Nico Schottelius, 2019-09-10, Seoul
tmp=$(mktemp)
gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | (
while read line
do
name=$(echo $line | sed 's/\(.*\)(.*/\1/')
url=$(echo $line | sed -e 's/.*(RIF //' -e 's/).*//')
keyurl=$url/rifkeys
echo "Getting friends from $name on $keyurl ..."
curl -6 -s "$keyurl" >> $tmp
done
)
gpg --import "$tmp"
rm -f "$tmp"
|