diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-09 00:30:04 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-09 00:30:04 -0500 |
commit | c0ab14d9df7959057a04f2ebd837c50e169c1c01 (patch) | |
tree | 5971f76321c9c65a30828791c060f484de6d9fcf /src/share/mh/import_key | |
parent | f728df69bbb04ed21a437832c486590cc5a83684 (diff) |
a couple of small fixes to the {gen,import}_key functions
Diffstat (limited to 'src/share/mh/import_key')
-rw-r--r-- | src/share/mh/import_key | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/share/mh/import_key b/src/share/mh/import_key index 6a897b6..1efb1ac 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -15,12 +15,10 @@ import_key() { local hostName local userID -local fingerprint -# check for presence of secret key -# FIXME: is this the proper test to be doing here? -fingerprint_host_key >/dev/null \ - && failure "An OpenPGP host key already exists." +# check for presense of a key +[ "$FINGERPRINT" ] && \ + failure "An OpenPGP host key already exists." hostName=${1:-$(hostname -f)} |