From 44e57bfc7bef4b27d66651f09c9af697e3ce4b5c Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 18 Jan 2010 17:07:11 -0500 Subject: got rid of monkeysphere-host fprs file --- src/monkeysphere-host | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/monkeysphere-host') 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() { -- cgit v1.2.3