From cdf4370b1384c3fdc09cc7dd93ab7df06f0f99a2 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 8 Aug 2008 10:01:49 -0400 Subject: made monkeysphere --gen-subkey work better for users without gpg keys. --- src/monkeysphere | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 \ -- cgit v1.2.3