X-Git-Url: https://git.ucc.asn.au/?p=zanchey%2Fuccpass.git;a=blobdiff_plain;f=uccpass;h=e4c48c774d5a562f0ce073f218f0b80888128d6f;hp=f3998037ed7156480c579499a494c1533aaa516a;hb=HEAD;hpb=164bd3b3fd15aa5f5f13cf11c1a8f44a790ce9b8 diff --git a/uccpass b/uccpass index f399803..e4c48c7 100755 --- a/uccpass +++ b/uccpass @@ -77,6 +77,7 @@ add_to_shell () { refresh_keys () { gpg2 --quiet --import $UCCPASS_KEYRING + gpg2 --with-colons $UCCPASS_KEYRING | grep '^pub' | cut -d: -f5 > $PASSWORD_STORE_DIR/.gpg-id } new_user_setup () { @@ -126,15 +127,6 @@ new_user_setup () { # Get the key fingerprint KEY_FINGERPRINT=`gpg --list-secret-keys --with-fingerprint --with-colons $GIT_AUTHOR_EMAIL | grep '^fpr' | head -n 1 | cut -d: -f 10` - # Add to .gpg-id - echo -n " >> Adding your key to the access list... " - if grep -qF "<$GIT_AUTHOR_EMAIL>" $PASSWORD_STORE_DIR/.gpg-id; then - echo "already present!" - else - echo "<$GIT_AUTHOR_EMAIL>" >> $PASSWORD_STORE_DIR/.gpg-id - echo "ok." - fi - # Add to key list # XXX: is it worth submitting these to an online keyserver? echo -n " >> Adding your key to the shared keyring... "