Skip to content
Snippets Groups Projects
Unverified Commit 5dc85c07 authored by Bob Mottram's avatar Bob Mottram
Browse files

Test for error

parent 51c0a2a5
No related branches found
No related tags found
No related merge requests found
......@@ -702,12 +702,12 @@ function sign_gpg_key {
if [ ${#SIGN_ADDRESS} -gt 2 ]; then
clear
fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}')
if [[ $fpr == *"error"* ]]; then
if [ ! "$?" = "0" ]; then
gpg --search "$SIGN_ADDRESS"
fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}')
fi
if [[ $fpr != *"error"* ]]; then
if [ ! "$?" = "0" ]; then
if [ ${#fpr} -gt 2 ]; then
gpg --sign-key $fpr
if [ "$?" = "0" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment