Compare commits

..

2 Commits

Author SHA1 Message Date
7bb30f09f5
Check for empty string 2021-01-04 20:36:16 +01:00
36eb4564a3
Y42: Extract the GPG part to another form 2021-01-04 20:33:52 +01:00
3 changed files with 12 additions and 11 deletions

View File

@ -72,17 +72,10 @@ This is my \ \ \ \ \answerbox{0.1} first \ \ \ \ \answerbox{0.1} second \ \ \ \
I know \ \ \ \answerbox{0.1} nothing \ \ \ \answerbox{0.1} somewhat \ \ \ \answerbox{0.1} the secret \ \ \ \ about the Chaos.
\\
\section*{Application for registering my GPG fingerprint - Optional}
I hereby applicate to register my GPG fingerprint.
I have either
\section*{Additional hints}
\begin{itemize}
\item[1.] uploaded the public key to the \textbf{keys.openpgp.org} keyserver \textbf{using the following mail address} or
\item[2.] I can state the \textbf{full GPG fingerprint}, which is
\item To register your \textbf{GPG fingerprint} on your passport, please fill out \textbf{Form PKSR20}.
\end{itemize}
\
Mail address or full GPG fingerprint in the form of 1234-ABCD-5678-9012-1234-1234-1234-1234-1234
\\
\answerbox{6.5}
\end{document}

6
start
View File

@ -101,7 +101,11 @@ function gpgSearch() {
if [ $? -eq 0 ]; then
export FFP=$(gpg -k "$(cat $TMP)" | head -n 2 | tail -n 1 | awk '{print $1}' | sed 's/.\{4\}/& /g;s/^\(.*\) $/\1/g')
gpg --batch --delete-key "$FFP"
return 0
if [ "$FFP" = "" ]; then
gpgSearch
else
return 0
fi
else
gpgSearch
fi

View File

@ -135,7 +135,11 @@ function gpgSearch() {
if [ $? -eq 0 ]; then
export FFP=$(gpg -k "$(cat $TMP)" | head -n 2 | tail -n 1 | awk '{print $1}' | sed 's/.\{4\}/& /g;s/^\(.*\) $/\1/g')
gpg --batch --delete-key "$FFP"
return 0
if [ "$FFP" = "" ]; then
gpgSearch
else
return 0
fi
else
gpgSearch
fi