From f05e6c9d597fe4a97edebf44ab28c3c3442f4859 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 24 Aug 2022 17:39:13 -0400 Subject: [PATCH] bug fixes --- fsf-keyring.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fsf-keyring.sh b/fsf-keyring.sh index a49ba64..d1588c4 100755 --- a/fsf-keyring.sh +++ b/fsf-keyring.sh @@ -63,22 +63,22 @@ KEYS+="3D53198D2A8341B291BDD42893C0CF451883524B " #davis 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 -- 2.25.1