Documentation
This commit is contained in:
@ -1,15 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set MAILADDRESS variable
|
||||
read -p 'Type in your chaospott mail address: ' MAILADDRESS
|
||||
|
||||
# Dieses danach im o.g. Ordner ausführen.
|
||||
|
||||
# Get WKDHASH
|
||||
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
|
||||
# Export key into WKDHASH
|
||||
gpg --no-armor --export "$MAILADDRESS" > "$WKDHASH"
|
||||
git add "$WKDHASH"
|
||||
|
||||
# git commit and push
|
||||
echo "OK. Now put your nickname in the commit message."
|
||||
read -p 'Press enter.'
|
||||
git commit
|
||||
|
Reference in New Issue
Block a user