KEYS+="2E0ECE75F8162B407D666767879738E6D6440D57 " #devinu
KEYS+="D86097B5E291BA771FA64D357014A6BE08494155" #odile
-check-sig-dos fsf-keyring.gpg
-gpg --import fsf-keyring.gpg
-
-rm -f /tmp/keys.asc ./fsf-keyring.gpg
+if [[ -e fsf-keyring.gpg ]] ; then
+ check-sig-dos fsf-keyring.gpg
+ gpg --import fsf-keyring.gpg
+else
+ gpg --armor --export $KEYS > fsf-keyring.gpg
+fi
for KEY in $KEYS ; do
if $refresh; then
echo "Key: $KEY"
- refresh-gpg-key $KEY
+ refresh-gpg-key $KEY || :
fi
done
gpg --armor --export $KEYS > key-export
-
check-sig-dos key-export
-
mv key-export fsf-keyring.gpg
rm -f fsf-keyring.gpg.asc ./fsf-keyring.gpg~ key-export