Now that these variables do not contain the --default-item flag itself,

change the name of the variable from $def_item_... to $default_...
This commit is contained in:
Devin Teske 2016-12-12 19:10:39 +00:00
parent 783e461c73
commit 71ef4d586a

View file

@ -81,8 +81,8 @@ dialog_country_select()
{
local input regdomains countries regdomain country
local no_default="<not selected>"
local def_item_regdomain="${1:-$no_default}"
local def_item_country="${2:-$no_default}"
local default_regdomain="${1:-$no_default}"
local default_country="${2:-$no_default}"
#
# Parse available countries/regdomains
@ -112,7 +112,7 @@ dialog_country_select()
--backtitle \"$DIALOG_BACKTITLE\" \
--title \"Regdomain selection\" \
--cancel-label \"Skip\" \
--default-item \"$def_item_regdomain\" \
--default-item \"$default_regdomain\" \
--no-items \
--stdout \
--menu \"Select your regdomain.\" \
@ -126,7 +126,7 @@ dialog_country_select()
--backtitle \"$DIALOG_BACKTITLE\" \
--title \"Country selection\" \
--cancel-label \"Skip\" \
--default-item \"$def_item_country\" \
--default-item \"$default_country\" \
--stdout \
--menu \"Select your country.\" \
$height $width $rows $countries"