X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere;h=da10c204e5ca9cb86dbec3c19666e40ed09f064e;hb=5853f2d8964cb415dd803e471b8903198f9acf17;hp=8936668c3ccef5d117a35497aedafc54b4b97644;hpb=ebe1b243ed380d15e909bcbbbb62d8a6e95168cc;p=monkeysphere.git diff --git a/src/monkeysphere b/src/monkeysphere index 8936668..da10c20 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -128,25 +128,7 @@ key before joining the monkeysphere. You can do this with: # set subkey defaults # prompt about key expiration if not specified - if [ -z "$keyExpire" ] ; then - cat < = key expires in n days - w = key expires in n weeks - m = key expires in n months - y = key expires in n years -EOF - while [ -z "$keyExpire" ] ; do - read -p "Key is valid for? (0) " keyExpire - if ! test_gpg_expire ${keyExpire:=0} ; then - echo "invalid value" - unset keyExpire - fi - done - elif ! test_gpg_expire "$keyExpire" ; then - failure "invalid key expiration value '$keyExpire'." - fi + keyExpire=$(get_gpg_expiration "$keyExpire") # generate the list of commands that will be passed to edit-key editCommands=$(cat < "$workingdir/$kname" & (cd "$workingdir" && DISPLAY=nosuchdisplay SSH_ASKPASS=/bin/false ssh-add "$@" "$kname"