From 1bbc069e332a54e2a84159607e35472804b9b30a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 May 2016 09:32:35 +0100 Subject: [PATCH] search anyway --- src/freedombone-controlpanel-user | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index b33b6828..843f1e4b 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -701,12 +701,8 @@ function sign_gpg_key { SIGN_ADDRESS=$(<$data) if [ ${#SIGN_ADDRESS} -gt 2 ]; then clear + gpg --search "$SIGN_ADDRESS" fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}') - 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 [ ! "$?" = "0" ]; then if [ ${#fpr} -gt 2 ]; then gpg --sign-key $fpr