X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere;h=1dee3bab81411bf6c03441a0dfa6fc3cf1c089ae;hb=bef7e503b70c985c2d4386146fc5881e7ab3718e;hp=bc390ccca5e239a83e00e594f576d16cdc6e8fd6;hpb=593cd32c436edeb594714dbd0d4421add227c2c3;p=monkeysphere.git diff --git a/src/monkeysphere b/src/monkeysphere index bc390cc..1dee3ba 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -50,7 +50,7 @@ subcommands: subkey-to-ssh-agent (s) store authentication subkey in ssh-agent sshfpr (f) KEYID output ssh fingerprint of gpg key - keys-from-userid (u) USERID output valid keys for user id literal + keys-for-userid (u) USERID output valid keys for user id literal gen-subkey (g) [KEYID] generate an authentication subkey --length (-l) BITS key length in bits (2048) @@ -146,7 +146,7 @@ check_gpg_authentication_subkey() { # if authentication key is valid, prompt to continue if [ "$validity" = 'u' ] ; then echo "A valid authentication key already exists for primary key '$keyID'." 1>&2 - if [ "$PROMPT" = "true" ] ; then + if [ "$PROMPT" != "false" ] ; then printf "Are you sure you would like to generate another one? (y/N) " >&2 read OK; OK=${OK:N} if [ "${OK/y/Y}" != 'Y' ] ; then @@ -275,8 +275,13 @@ case $COMMAND in gpg_ssh_fingerprint "$@" ;; - 'keys-from-userid'|'u') - keys_from_userid "$@" + 'keys-for-userid'|'u') + keys_for_userid "$@" + ;; + + 'keys-from-userid') + echo "Warning: 'keys-from-userid' is deprecated. Please use 'keys-for-userid' instead." >&2 + keys_for_userid "$@" ;; 'version'|'--version'|'v')