Bob Mottram hace 7 años
padre
commit
75b72cb787
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      src/freedombone-controlpanel-user

+ 3
- 3
src/freedombone-controlpanel-user Ver fichero

437
 function add_gpg_key {
437
 function add_gpg_key {
438
     data=$(tempfile 2>/dev/null)
438
     data=$(tempfile 2>/dev/null)
439
     trap "rm -f $data" 0 1 2 5 15
439
     trap "rm -f $data" 0 1 2 5 15
440
-    dialog --title $"Add someone's PGP/GPG key" \
440
+    dialog --title $"Enter email address, Key ID or full key below" \
441
            --backtitle $"Freedombone User Control Panel" \
441
            --backtitle $"Freedombone User Control Panel" \
442
-           --inputbox $"Enter their email address, Key ID or full key below" 8 999999 2>$data
442
+           --editbox $data 8 60
443
     sel=$?
443
     sel=$?
444
     case $sel in
444
     case $sel in
445
         0)
445
         0)
459
                     address_is_valid=1
459
                     address_is_valid=1
460
                 fi
460
                 fi
461
 
461
 
462
-
463
                 if [ $address_is_valid ]; then
462
                 if [ $address_is_valid ]; then
464
                     clear
463
                     clear
465
                     if [[ "$ADD_EMAIL_ADDRESS" == *"$publicstr"* ]]; then
464
                     if [[ "$ADD_EMAIL_ADDRESS" == *"$publicstr"* ]]; then
479
             fi
478
             fi
480
             ;;
479
             ;;
481
     esac
480
     esac
481
+    rm $data
482
 }
482
 }
483
 
483
 
484
 function remove_gpg_key {
484
 function remove_gpg_key {