pass: switch to using email addresses instead of keyids
authorDavid Adam <[email protected]>
Thu, 30 Jun 2016 10:16:39 +0000 (18:16 +0800)
committerDavid Adam <[email protected]>
Thu, 30 Jun 2016 10:16:39 +0000 (18:16 +0800)
uccpass

diff --git a/uccpass b/uccpass
index 7f7bb9d..1c453e3 100755 (executable)
--- 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
 

UCC git Repository :: git.ucc.asn.au