20 lines
522 B
Plaintext
20 lines
522 B
Plaintext
|
#!/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
|