diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-01-18 17:07:11 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-01-18 17:07:11 -0500 |
commit | 44e57bfc7bef4b27d66651f09c9af697e3ce4b5c (patch) | |
tree | a8c8df68d8da1dc3b7ce77182640ec9f808f7e42 /src | |
parent | 97e51c1dcf3f4a582cb9ff8a83d56eda8b22b292 (diff) |
got rid of monkeysphere-host fprs file
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere-host | 7 |
1 files changed, 3 insertions, 4 deletions
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() { |