Respect multiple user ids
This commit is contained in:
parent
72bdd27348
commit
c359875b1b
12
genwkdkey
12
genwkdkey
@ -4,12 +4,14 @@
|
|||||||
read -p 'Type in your chaospott mail address: ' MAILADDRESS
|
read -p 'Type in your chaospott mail address: ' MAILADDRESS
|
||||||
|
|
||||||
# Get WKDHASH
|
# Get WKDHASH
|
||||||
WKDHASH=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]+[0-9a-z]{32}@chaospott\.de" | head -n1 | sed 's/ //g;s/@chaospott\.de//')
|
WKDHASHES=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]+[0-9a-z]{32}@chaospott\.de" | sed 's/ //g;s/@chaospott\.de//')
|
||||||
|
|
||||||
if [ -n "$WKDHASH" ]; then
|
if [ -n "$WKDHASHES" ]; then
|
||||||
# Export key into WKDHASH
|
for wkdhash in $WKDHASHES; do
|
||||||
gpg --no-armor --export "$MAILADDRESS" > "$WKDHASH"
|
# Export key into WKDHASH
|
||||||
git add "$WKDHASH"
|
gpg --no-armor --export "$MAILADDRESS" > "$wkdhash"
|
||||||
|
git add "$wkdhash"
|
||||||
|
done
|
||||||
|
|
||||||
# git commit and push
|
# git commit and push
|
||||||
read -p 'Enter your nickname: ' NICKNAME
|
read -p 'Enter your nickname: ' NICKNAME
|
||||||
|
Loading…
Reference in New Issue
Block a user