X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere-host;fp=src%2Fmonkeysphere-host;h=ef4107a30f6475f81319c8f20b6e30ffec45e051;hb=44e57bfc7bef4b27d66651f09c9af697e3ce4b5c;hp=a580ef2b9ffc391e4a06c8b47421b009e09c4798;hpb=97e51c1dcf3f4a582cb9ff8a83d56eda8b22b292;p=monkeysphere.git diff --git a/src/monkeysphere-host b/src/monkeysphere-host index a580ef2..ef4107a 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -92,10 +92,9 @@ gpg_host_edit() { # export the monkeysphere gpg pub key file update_gpg_pub_file() { log debug "updating openpgp public key file '$HOST_KEY_FILE'..." - gpg_host --export --armor --export-options export-minimal > "$HOST_KEY_FILE" - log debug "updating fingerprint file '$HOST_KEY_FPR_FILE'..." - gpg_host --list-secret-key --with-colons --with-fingerprint \ - | awk -F: '/^fpr:/{ print $10 }' > "$HOST_KEY_FPR_FILE" + gpg_host --export --armor --export-options export-minimal \ + $(gpg_host --list-secret-keys --with-colons --fingerprint | grep ^fpr | cut -f9 -d:) \ + > "$HOST_KEY_FILE" } host_fingerprints() {