Browse Source

search anyway

Bob Mottram 9 years ago
parent
commit
1bbc069e33
No account linked to committer's email
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      src/freedombone-controlpanel-user

+ 1
- 5
src/freedombone-controlpanel-user View File

@@ -701,13 +701,9 @@ function sign_gpg_key {
701 701
 			SIGN_ADDRESS=$(<$data)
702 702
 			if [ ${#SIGN_ADDRESS} -gt 2 ]; then
703 703
 				clear
704
+				gpg --search "$SIGN_ADDRESS"
704 705
 				fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}')
705 706
 				if [ ! "$?" = "0" ]; then
706
-					gpg --search "$SIGN_ADDRESS"
707
-					fpr=$(gpg --with-colons --fingerprint "$SIGN_ADDRESS" | grep fpr | head -n 1 | awk -F ':' '{print $10}')
708
-				fi
709
-
710
-				if [ ! "$?" = "0" ]; then
711 707
 					if [ ${#fpr} -gt 2 ]; then
712 708
 						gpg --sign-key $fpr
713 709
 						if [ "$?" = "0" ]; then