aboutsummaryrefslogtreecommitdiff
path: root/refresh-keys
blob: 31c579a509486db039f1f8b9f948f49a3a476e25 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# Wrapper for gpg --refresh-keys
# See http://pastebin.com/raw.php?i=XL0WAVSA

for key in `gpg --list-keys --with-colons | grep "^pub" | cut -f5 -d":" | sort --random-sort`
do
        usewithtor gpg --refresh-keys $key 2> /dev/null
        sleep $(( ($RANDOM % 1000) + 1))
done