From 9e67d20176d0ab2fe4d933ebc5e16ccdf3b803d9 Mon Sep 17 00:00:00 2001 From: Bandie Date: Thu, 16 Jun 2022 14:35:40 +0200 Subject: [PATCH] Documentation --- README.md | 2 +- genwkdkey | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3848148..376795b 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,5 @@ Um, neben [keys.openpgp.org](https://keys.openpgp.org/), den eigenen Chaospott-G 3. Führe das Skript `genwkdkey` aus. Es exportiert deinen öffentlichen Schlüssel und legt ihn nach einem WKD-Hash-Muster ab. -4. Füge es zum git hinzu, commite und pushe. +4. Das Skript committet und pusht ebenfalls. diff --git a/genwkdkey b/genwkdkey index 83dfcbd..7e60e21 100755 --- a/genwkdkey +++ b/genwkdkey @@ -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