Care for at least one space

This commit is contained in:
Bandie 2022-07-02 15:49:45 +02:00
parent 5df3438fe7
commit 72bdd27348
Signed by: Bandie
GPG Key ID: 7FA4FD7D1D7997C2

View File

@ -4,7 +4,7 @@
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 "[ ]{,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 if [ -n "$WKDHASH" ]; then
# Export key into WKDHASH # Export key into WKDHASH