Skip to content

Instantly share code, notes, and snippets.

@LeSpocky
Created March 14, 2014 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeSpocky/9544626 to your computer and use it in GitHub Desktop.
Save LeSpocky/9544626 to your computer and use it in GitHub Desktop.
#!/bin/sh
for KEYID in `gpg --list-keys --fixed-list-mode --with-colons | grep "^pub" | cut -f5 -d":"`
do
gpg --batch --refresh-keys $KEYID
sleep 3
gpg --batch --edit-key $KEYID clean save
echo "---------- ---------- ----------"
sleep 3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment