Update array within loop to show changed months
This commit is contained in:
parent
5deca1d6a1
commit
4f87aedfd6
|
@ -303,16 +303,16 @@ function gnusocial_set_expire_months {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_interactive_gnusocial {
|
function configure_interactive_gnusocial {
|
||||||
W=(1 $"Set a background image"
|
|
||||||
2 $"Set the title"
|
|
||||||
3 $"Set post expiry period (currently $GNUSOCIAL_EXPIRE_MONTHS months)"
|
|
||||||
4 $"Select Qvitter user interface"
|
|
||||||
5 $"Select Pleroma user interface"
|
|
||||||
6 $"Select Classic user interface")
|
|
||||||
|
|
||||||
read_config_param GNUSOCIAL_EXPIRE_MONTHS
|
read_config_param GNUSOCIAL_EXPIRE_MONTHS
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
W=(1 $"Set a background image"
|
||||||
|
2 $"Set the title"
|
||||||
|
3 $"Set post expiry period (currently $GNUSOCIAL_EXPIRE_MONTHS months)"
|
||||||
|
4 $"Select Qvitter user interface"
|
||||||
|
5 $"Select Pleroma user interface"
|
||||||
|
6 $"Select Classic user interface")
|
||||||
|
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"GNU Social" --menu $"Choose an operation, or ESC to exit:" 15 60 6 "${W[@]}" 3>&2 2>&1 1>&3)
|
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"GNU Social" --menu $"Choose an operation, or ESC to exit:" 15 60 6 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
|
|
|
@ -317,16 +317,16 @@ function postactiv_set_expire_months {
|
||||||
}
|
}
|
||||||
|
|
||||||
function configure_interactive_postactiv {
|
function configure_interactive_postactiv {
|
||||||
W=(1 $"Set a background image"
|
|
||||||
2 $"Set the title"
|
|
||||||
3 $"Set post expiry period (currently $POSTACTIV_EXPIRE_MONTHS months)"
|
|
||||||
4 $"Select Qvitter user interface"
|
|
||||||
5 $"Select Pleroma user interface"
|
|
||||||
6 $"Select Classic user interface")
|
|
||||||
|
|
||||||
read_config_param "POSTACTIV_EXPIRE_MONTHS"
|
read_config_param "POSTACTIV_EXPIRE_MONTHS"
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
W=(1 $"Set a background image"
|
||||||
|
2 $"Set the title"
|
||||||
|
3 $"Set post expiry period (currently $POSTACTIV_EXPIRE_MONTHS months)"
|
||||||
|
4 $"Select Qvitter user interface"
|
||||||
|
5 $"Select Pleroma user interface"
|
||||||
|
6 $"Select Classic user interface")
|
||||||
|
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"PostActiv" --menu $"Choose an operation, or ESC to exit:" 15 60 6 "${W[@]}" 3>&2 2>&1 1>&3)
|
selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"PostActiv" --menu $"Choose an operation, or ESC to exit:" 15 60 6 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue