Use editbox

This commit is contained in:
Bob Mottram 2017-10-23 21:05:15 +01:00
parent 6659501337
commit 75b72cb787
1 changed files with 3 additions and 3 deletions

View File

@ -437,9 +437,9 @@ function refresh_gpg_keys {
function add_gpg_key { function add_gpg_key {
data=$(tempfile 2>/dev/null) data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15 trap "rm -f $data" 0 1 2 5 15
dialog --title $"Add someone's PGP/GPG key" \ dialog --title $"Enter email address, Key ID or full key below" \
--backtitle $"Freedombone User Control Panel" \ --backtitle $"Freedombone User Control Panel" \
--inputbox $"Enter their email address, Key ID or full key below" 8 999999 2>$data --editbox $data 8 60
sel=$? sel=$?
case $sel in case $sel in
0) 0)
@ -459,7 +459,6 @@ function add_gpg_key {
address_is_valid=1 address_is_valid=1
fi fi
if [ $address_is_valid ]; then if [ $address_is_valid ]; then
clear clear
if [[ "$ADD_EMAIL_ADDRESS" == *"$publicstr"* ]]; then if [[ "$ADD_EMAIL_ADDRESS" == *"$publicstr"* ]]; then
@ -479,6 +478,7 @@ function add_gpg_key {
fi fi
;; ;;
esac esac
rm $data
} }
function remove_gpg_key { function remove_gpg_key {