From: David Adam Date: Thu, 30 Jun 2016 10:16:39 +0000 (+0800) Subject: pass: switch to using email addresses instead of keyids X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d281445b66faf26bd0a868ed72501175f3e31e96;p=zanchey%2Fuccpass.git pass: switch to using email addresses instead of keyids --- diff --git a/uccpass b/uccpass index 7f7bb9d..1c453e3 100755 --- a/uccpass +++ b/uccpass @@ -127,10 +127,10 @@ new_user_setup () { # Add to .gpg-id echo -n " >> Adding your key to the access list... " - if grep -qF "$KEY_FINGERPRINT" $PASSWORD_STORE_DIR/.gpg-id; then + if grep -qF "<$GIT_AUTHOR_EMAIL>" $PASSWORD_STORE_DIR/.gpg-id; then echo "already present!" else - echo "$KEY_FINGERPRINT" >> $PASSWORD_STORE_DIR/.gpg-id + echo "<$GIT_AUTHOR_EMAIL>" >> $PASSWORD_STORE_DIR/.gpg-id echo "ok." fi