浏览代码

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 年前
父节点
当前提交
8330dad8b6
共有 5 个文件被更改,包括 23 次插入12 次删除
  1. 二进制
      man/freedombone-tests.1.gz
  2. 3
    2
      src/freedombone-addremove
  3. 4
    2
      src/freedombone-config
  4. 12
    6
      src/freedombone-controlpanel
  5. 4
    2
      src/freedombone-controlpanel-user

二进制
man/freedombone-tests.1.gz 查看文件


+ 3
- 2
src/freedombone-addremove 查看文件

@@ -121,10 +121,11 @@ function show_apps {
121 121
         app_index=$((app_index+1))
122 122
     done
123 123
 
124
+    # shellcheck disable=SC2086
124 125
     choices=$(dialog --stdout --backtitle $"Freedombone" \
125 126
                      --title $"Add/Remove Applications" \
126 127
                      --checklist $'Choose:' \
127
-                     27 40 20 "$applist")
128
+                     27 40 20 $applist)
128 129
 
129 130
     # shellcheck disable=SC2181
130 131
     if [ $? -eq 0 ]; then
@@ -258,7 +259,7 @@ clear
258 259
 
259 260
 remove_apps_selected
260 261
 
261
-if [[ $1 == "add-all" ]]; then
262
+if [[ "$1" == "add-all" ]]; then
262 263
     install_apps_selected add-all
263 264
 else
264 265
     install_apps_selected

+ 4
- 2
src/freedombone-config 查看文件

@@ -808,10 +808,11 @@ function choose_system_variant {
808 808
         n=$((n+1))
809 809
     done
810 810
 
811
+    # shellcheck disable=SC2086
811 812
     variant_choice=$(dialog --stdout --backtitle $"Freedombone Configuration" \
812 813
                             --title $"Type of Installation" \
813 814
                             --radiolist $'Choose:' \
814
-                            27 40 20 "$varslist")
815
+                            27 40 20 $varslist)
815 816
 
816 817
     # shellcheck disable=SC2181
817 818
     if [ $? -eq 0 ]; then
@@ -1078,7 +1079,8 @@ function select_user {
1078 1079
     if [ $i -eq 1 ]; then
1079 1080
         SELECTED_USERNAME="${name[0]}"
1080 1081
     else
1081
-        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)
1082
+        # shellcheck disable=SC2068
1083
+        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)
1082 1084
 
1083 1085
         # shellcheck disable=SC2181
1084 1086
         if [ $? -eq 0 ]; then

+ 12
- 6
src/freedombone-controlpanel 查看文件

@@ -215,7 +215,8 @@ function passwords_select_user {
215 215
     if [ $i -eq 1 ]; then
216 216
         SELECTED_USERNAME="${name[0]}"
217 217
     else
218
-        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)
218
+        # shellcheck disable=SC2068
219
+        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)
219 220
 
220 221
         # shellcheck disable=SC2181
221 222
         if [ $? -eq 0 ]; then
@@ -241,7 +242,8 @@ function passwords_show_apps {
241 242
     W+=("$i" "mariadb")
242 243
     name+=("mariadb")
243 244
 
244
-    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)
245
+    # shellcheck disable=SC2068
246
+    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)
245 247
 
246 248
     # shellcheck disable=SC2181
247 249
     if [ $? -eq 0 ]; then
@@ -617,7 +619,8 @@ function select_user {
617 619
     if [ $i -eq 1 ]; then
618 620
         SELECTED_USERNAME="${name[0]}"
619 621
     else
620
-        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)
622
+        # shellcheck disable=SC2068
623
+        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)
621 624
 
622 625
         # shellcheck disable=SC2181
623 626
         if [ $? -eq 0 ]; then
@@ -762,7 +765,8 @@ function remove_user_from_mailing_list {
762 765
     i=$((i+1))
763 766
     W+=("$i" $"Exit back to user mainenance")
764 767
 
765
-    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)
768
+    # shellcheck disable=SC2068
769
+    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)
766 770
 
767 771
     # shellcheck disable=SC2181
768 772
     if [ $? -eq 0 ]; then # Exit with OK
@@ -1147,10 +1151,11 @@ function restore_data_from_storage {
1147 1151
         n=$((n+1))
1148 1152
         app_list+=("$ExitStr")
1149 1153
 
1154
+        # shellcheck disable=SC2086
1150 1155
         choice=$(dialog --stdout --backtitle $"Freedombone" \
1151 1156
                         --title "$RestoreStr" \
1152 1157
                         --radiolist $'Choose:' \
1153
-                        30 50 20 "$applist")
1158
+                        30 50 20 $applist)
1154 1159
 
1155 1160
         # shellcheck disable=SC2181
1156 1161
         if [ $? -ne 0 ]; then
@@ -2246,10 +2251,11 @@ function menu_app_settings {
2246 2251
     applist="$applist $n $backstr on"
2247 2252
     appnames+=("Exit")
2248 2253
 
2254
+    # shellcheck disable=SC2086
2249 2255
     choice=$(dialog --stdout --backtitle $"Freedombone" \
2250 2256
                     --title $"Change settings for an App" \
2251 2257
                     --radiolist $'Choose:' \
2252
-                    26 40 30 "$applist")
2258
+                    26 40 30 $applist)
2253 2259
 
2254 2260
     # shellcheck disable=SC2181
2255 2261
     if [ $? -eq 0 ]; then

+ 4
- 2
src/freedombone-controlpanel-user 查看文件

@@ -91,7 +91,8 @@ function remove_user_from_mailing_list {
91 91
     i=$((i+1))
92 92
     W+=("$i" $"Exit back to filtering rules menu")
93 93
 
94
-    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)
94
+    # shellcheck disable=SC2068
95
+    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)
95 96
 
96 97
     # shellcheck disable=SC2181
97 98
     if [ $? -eq 0 ]; then # Exit with OK
@@ -854,10 +855,11 @@ function menu_run_client_app {
854 855
     applist="$applist $n $backstr on"
855 856
     appnames+=("Exit")
856 857
 
858
+    # shellcheck disable=SC2086
857 859
     choice=$(dialog --stdout --backtitle $"Freedombone" \
858 860
                      --title $"Run an App" \
859 861
                      --radiolist $'Choose:' \
860
-                     16 40 20 "$applist")
862
+                     16 40 20 $applist)
861 863
 
862 864
     # shellcheck disable=SC2181
863 865
     if [ $? -eq 0 ]; then