diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-08-08 10:01:49 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-08-08 10:01:49 -0400 |
commit | cdf4370b1384c3fdc09cc7dd93ab7df06f0f99a2 (patch) | |
tree | d30d28df37dbbe3ea8b2d56036a1da2554ea7cc3 /src | |
parent | 26515a1311d364501d562b706660337fbb906011 (diff) |
made monkeysphere --gen-subkey work better for users without gpg keys.
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/monkeysphere b/src/monkeysphere index 4a611c8..8ddfe7f 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -101,6 +101,11 @@ gen_subkey(){ else keyID="$1" fi + if [ -z "$keyID" ] ; then + failure "You have no secret key available. You should create an OpenPGP +key before joining the monkeysphere. You can do this with: + gpg --gen-key" + fi # get key output, and fail if not found gpgOut=$(gpg --quiet --fixed-list-mode --list-secret-keys --with-colons \ |