]> gitweb.fluxo.info Git - firma.git/commitdiff
NewList minor fixes
authorrhatto <rhatto>
Tue, 10 Oct 2006 02:36:27 +0000 (02:36 +0000)
committerrhatto <rhatto>
Tue, 10 Oct 2006 02:36:27 +0000 (02:36 +0000)
firma

diff --git a/firma b/firma
index cd9b753a90768bab8755c04a525c2984118801dd..47a6428424f71e85ccf8626a9d66ce957e5e8891 100755 (executable)
--- 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
 }