From 72bdd2734827dd74bb6e4854ffc55aa23092ef69 Mon Sep 17 00:00:00 2001 From: Bandie Date: Sat, 2 Jul 2022 15:49:45 +0200 Subject: [PATCH] Care for at least one space --- genwkdkey | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genwkdkey b/genwkdkey index 48a17eb..cc857b9 100755 --- a/genwkdkey +++ b/genwkdkey @@ -4,7 +4,7 @@ read -p 'Type in your chaospott mail address: ' MAILADDRESS # Get WKDHASH -WKDHASH=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]{,14}[0-9a-z]{32}@chaospott\.de" | head -n1 | sed 's/ //g;s/@chaospott\.de//') +WKDHASH=$(gpg --with-wkd-hash --fingerprint "$MAILADDRESS" | egrep "[ ]+[0-9a-z]{32}@chaospott\.de" | head -n1 | sed 's/ //g;s/@chaospott\.de//') if [ -n "$WKDHASH" ]; then # Export key into WKDHASH