From da14037185cc815ba10f417115eab2eb17613aa9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 10 Oct 2006 02:36:27 +0000 Subject: NewList minor fixes --- firma | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/firma b/firma index cd9b753..47a6428 100755 --- a/firma +++ b/firma @@ -979,8 +979,9 @@ function NewList { digits_only="`echo "$SUBKEY_VALIDITY" | sed -e "s/$last_char.$//"`" if [ -z "$KEY_EXPIRATION" ]; then KEY_EXPIRATION="0" + break elif [ "$KEY_EXPIRATION" == "quit" ]; then - return 1 + return_code=1 elif [ -z "`echo $digits_only | sed -e 's/[0-9]//g'`" ] || [ ! -z "$last_char" ]; then break else @@ -1030,9 +1031,8 @@ EOF while true; do read -rep " Please enter your choice: " answer if [ "$answer" != "1" ]; then - method="keyserver" read -rep " Please enter the keyserver address (defaults to $KEYSERVER): " answer - method="$method $answer" + method="keyserver $answer" break elif [ "$answer" != "2" ]; then method="stdin" @@ -1087,6 +1087,8 @@ EOF # list creation should be atomic if [ "$return_code" == "1" ]; then rm -rf $LIST_HOMEDIR + else + echo "List creation complete." fi return $return_code @@ -1508,7 +1510,7 @@ function SubscribeUsers { return_code=1 fi - FixListOwnerShip + FixListOwnership return $return_code } -- cgit v1.2.3