make sure fingerprint is loaded for update_gpg_pub_file
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 19 Feb 2009 08:59:09 +0000 (03:59 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Thu, 19 Feb 2009 08:59:09 +0000 (03:59 -0500)
src/monkeysphere-host

index 9e73ad20debd75f516b0b6d82524a05c6bbb5c4b..00f7c3441a8437bc92704779cafc2d1ede500d69 100755 (executable)
@@ -110,7 +110,7 @@ load_fingerprint() {
            && rm -rf "$FUBAR") <"$HOST_KEY_FILE" \
            | grep '^fpr:' | cut -d: -f10 )
     else
-       HOST_FINGERPRINT=
+       failure "host key gpg pub file not found."
     fi
 }
 
@@ -293,6 +293,7 @@ case $COMMAND in
        ;;
 
     'update-gpg-pub-file')
+       load_fingerprint_secret
        update_gpg_pub_file
        ;;