Fix dialog arguments
This commit is contained in:
parent
472da22b14
commit
8c75814291
|
@ -121,10 +121,11 @@ function show_apps {
|
||||||
app_index=$((app_index+1))
|
app_index=$((app_index+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
choices=$(dialog --stdout --backtitle $"Freedombone" \
|
choices=$(dialog --stdout --backtitle $"Freedombone" \
|
||||||
--title $"Add/Remove Applications" \
|
--title $"Add/Remove Applications" \
|
||||||
--checklist $'Choose:' \
|
--checklist $'Choose:' \
|
||||||
27 40 20 "$applist")
|
27 40 20 $applist)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
@ -258,7 +259,7 @@ clear
|
||||||
|
|
||||||
remove_apps_selected
|
remove_apps_selected
|
||||||
|
|
||||||
if [[ $1 == "add-all" ]]; then
|
if [[ "$1" == "add-all" ]]; then
|
||||||
install_apps_selected add-all
|
install_apps_selected add-all
|
||||||
else
|
else
|
||||||
install_apps_selected
|
install_apps_selected
|
||||||
|
|
|
@ -808,10 +808,11 @@ function choose_system_variant {
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
variant_choice=$(dialog --stdout --backtitle $"Freedombone Configuration" \
|
variant_choice=$(dialog --stdout --backtitle $"Freedombone Configuration" \
|
||||||
--title $"Type of Installation" \
|
--title $"Type of Installation" \
|
||||||
--radiolist $'Choose:' \
|
--radiolist $'Choose:' \
|
||||||
27 40 20 "$varslist")
|
27 40 20 $varslist)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
@ -1078,7 +1079,8 @@ function select_user {
|
||||||
if [ $i -eq 1 ]; then
|
if [ $i -eq 1 ]; then
|
||||||
SELECTED_USERNAME="${name[0]}"
|
SELECTED_USERNAME="${name[0]}"
|
||||||
else
|
else
|
||||||
user_index=$(dialog --backtitle $"Freedombone Configuration" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
# shellcheck disable=SC2068
|
||||||
|
user_index=$(dialog --backtitle $"Freedombone Configuration" --title $"Select User" --menu $"Select one of the following:" 24 40 17 ${W[@]} 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
|
@ -215,7 +215,8 @@ function passwords_select_user {
|
||||||
if [ $i -eq 1 ]; then
|
if [ $i -eq 1 ]; then
|
||||||
SELECTED_USERNAME="${name[0]}"
|
SELECTED_USERNAME="${name[0]}"
|
||||||
else
|
else
|
||||||
user_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
# shellcheck disable=SC2068
|
||||||
|
user_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select User" --menu $"Select one of the following:" 24 40 17 ${W[@]} 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
@ -241,7 +242,8 @@ function passwords_show_apps {
|
||||||
W+=("$i" "mariadb")
|
W+=("$i" "mariadb")
|
||||||
name+=("mariadb")
|
name+=("mariadb")
|
||||||
|
|
||||||
selected_app_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select App" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
# shellcheck disable=SC2068
|
||||||
|
selected_app_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select App" --menu $"Select one of the following:" 24 40 17 ${W[@]} 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
@ -617,7 +619,8 @@ function select_user {
|
||||||
if [ $i -eq 1 ]; then
|
if [ $i -eq 1 ]; then
|
||||||
SELECTED_USERNAME="${name[0]}"
|
SELECTED_USERNAME="${name[0]}"
|
||||||
else
|
else
|
||||||
user_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
# shellcheck disable=SC2068
|
||||||
|
user_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select User" --menu $"Select one of the following:" 24 40 17 ${W[@]} 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
@ -762,7 +765,8 @@ function remove_user_from_mailing_list {
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
W+=("$i" $"Exit back to user mainenance")
|
W+=("$i" $"Exit back to user mainenance")
|
||||||
|
|
||||||
list_selected=$(dialog --default-item "$i" --backtitle $"Freedombone Control Panel" --title $"Remove a mailing list for $SELECTED_USERNAME" --menu $"Select one of the following:" 24 50 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
# shellcheck disable=SC2068
|
||||||
|
list_selected=$(dialog --default-item "$i" --backtitle $"Freedombone Control Panel" --title $"Remove a mailing list for $SELECTED_USERNAME" --menu $"Select one of the following:" 24 50 17 ${W[@]} 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then # Exit with OK
|
if [ $? -eq 0 ]; then # Exit with OK
|
||||||
|
@ -1147,10 +1151,11 @@ function restore_data_from_storage {
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
app_list+=("$ExitStr")
|
app_list+=("$ExitStr")
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
choice=$(dialog --stdout --backtitle $"Freedombone" \
|
choice=$(dialog --stdout --backtitle $"Freedombone" \
|
||||||
--title "$RestoreStr" \
|
--title "$RestoreStr" \
|
||||||
--radiolist $'Choose:' \
|
--radiolist $'Choose:' \
|
||||||
30 50 20 "$applist")
|
30 50 20 $applist)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -2246,10 +2251,11 @@ function menu_app_settings {
|
||||||
applist="$applist $n $backstr on"
|
applist="$applist $n $backstr on"
|
||||||
appnames+=("Exit")
|
appnames+=("Exit")
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
choice=$(dialog --stdout --backtitle $"Freedombone" \
|
choice=$(dialog --stdout --backtitle $"Freedombone" \
|
||||||
--title $"Change settings for an App" \
|
--title $"Change settings for an App" \
|
||||||
--radiolist $'Choose:' \
|
--radiolist $'Choose:' \
|
||||||
26 40 30 "$applist")
|
26 40 30 $applist)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
|
@ -91,7 +91,8 @@ function remove_user_from_mailing_list {
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
W+=("$i" $"Exit back to filtering rules menu")
|
W+=("$i" $"Exit back to filtering rules menu")
|
||||||
|
|
||||||
list_selected=$(dialog --default-item "$i" --backtitle $"Freedombone User Control Panel" --title $"Remove yourself from a mailing list" --menu $"Select one of the following:" 24 50 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
# shellcheck disable=SC2068
|
||||||
|
list_selected=$(dialog --default-item "$i" --backtitle $"Freedombone User Control Panel" --title $"Remove yourself from a mailing list" --menu $"Select one of the following:" 24 50 17 ${W[@]} 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then # Exit with OK
|
if [ $? -eq 0 ]; then # Exit with OK
|
||||||
|
@ -854,10 +855,11 @@ function menu_run_client_app {
|
||||||
applist="$applist $n $backstr on"
|
applist="$applist $n $backstr on"
|
||||||
appnames+=("Exit")
|
appnames+=("Exit")
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
choice=$(dialog --stdout --backtitle $"Freedombone" \
|
choice=$(dialog --stdout --backtitle $"Freedombone" \
|
||||||
--title $"Run an App" \
|
--title $"Run an App" \
|
||||||
--radiolist $'Choose:' \
|
--radiolist $'Choose:' \
|
||||||
16 40 20 "$applist")
|
16 40 20 $applist)
|
||||||
|
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue