wkd/genwkdkey

20 lines
522 B
Plaintext
Raw Normal View History

2022-06-15 20:34:02 +00:00
#!/bin/bash
read -p 'Type in your chaospott mail address: ' MAILADDRESS
# Dieses danach im o.g. Ordner ausführen.
WKDHASH=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]{14}[0-9a-z]{32}@chaospott\.de" | sed 's/ //g;s/@chaospott\.de//')
if [ -n "$WKDHASH" ]; then
gpg --no-armor --export "$MAILADDRESS" > "$WKDHASH"
git add "$WKDHASH"
echo "OK. Now put your nickname in the commit message."
read -p 'Press enter.'
git commit
git push
else
echo "Mail address is not in your keyring."
fi