diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-01-31 18:04:21 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-01-31 18:04:21 -0500 |
commit | a0747749cbc7445e0cadaf0fbf1c92a2e86d1369 (patch) | |
tree | 01458632e6e699507b6a0889f2557726208c320e /src/subcommands/mh/publish-key | |
parent | 968627c7003d059e63ae455d91e1ada4143c8810 (diff) |
turn subcommands into subfunctions, that will need to be sourced and executed.
Diffstat (limited to 'src/subcommands/mh/publish-key')
-rwxr-xr-x | src/subcommands/mh/publish-key | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subcommands/mh/publish-key b/src/subcommands/mh/publish-key index 792d858..8b36a18 100755 --- a/src/subcommands/mh/publish-key +++ b/src/subcommands/mh/publish-key @@ -12,6 +12,8 @@ # publish server key to keyserver +publish_key() { + read -p "Really publish host key to $KEYSERVER? (y/N) " OK; OK=${OK:=N} if [ ${OK/y/Y} != 'Y' ] ; then failure "key not published." @@ -22,3 +24,5 @@ fingerprint=$(fingerprint_server_key) # publish host key gpg_authentication "--keyserver $KEYSERVER --send-keys '0x${fingerprint}!'" + +} |