diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-01-18 17:28:43 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-01-18 17:28:43 -0500 |
commit | 9b9b23c821e9309dd04cc3f193885ec5f32a0fdc (patch) | |
tree | 31b39cbaae6aaacca39cbfb87be2d2bed52788af /src | |
parent | 9307f58b4fdf8e139c4fd5de5c3a878b8b12d0b1 (diff) |
made public use of m-h show-keys instead of show-key, fixed stupid field-numbering bug in fingerprint extraction
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere-host | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 2335f1a..c9b6a4c 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -93,12 +93,12 @@ gpg_host_edit() { update_pgp_pub_file() { log debug "updating openpgp public key file '$HOST_KEY_FILE'..." gpg_host --export --armor --export-options export-minimal \ - $(gpg_host --list-secret-keys --with-colons --fingerprint | grep ^fpr | cut -f9 -d:) \ + $(gpg_host --list-secret-keys --with-colons --fingerprint | grep ^fpr | cut -f10 -d:) \ > "$HOST_KEY_FILE" } host_fingerprints() { - local fprs=($(<"$HOST_KEY_FILE" "$SYSSHAREDIR/keytrans" listfprs)) + local fprs=($(gpg_host --list-secret-keys --with-colons --fingerprint | grep ^fpr: | cut -f10 -d:)) log debug "host key fingerprints:" printf '%s\n' "${fprs[@]}" | log debug @@ -136,7 +136,7 @@ Please run 'monkeysphere-host import-key' to import a key." *) if [ -z "$keyID" ] ; then failure "Your host keyring contains multiple keys. -Please specify one to act on (see 'monkeysphere-host show-key')." +Please specify one to act on (see 'monkeysphere-host show-keys')." fi ;; esac |