Browse Source

Update array within loop to show changed months

Bob Mottram 7 years ago
parent
commit
4f87aedfd6
2 changed files with 14 additions and 14 deletions
  1. 7
    7
      src/freedombone-app-gnusocial
  2. 7
    7
      src/freedombone-app-postactiv

+ 7
- 7
src/freedombone-app-gnusocial View File

@@ -303,16 +303,16 @@ function gnusocial_set_expire_months {
303 303
 }
304 304
 
305 305
 function configure_interactive_gnusocial {
306
-    W=(1 $"Set a background image"
307
-       2 $"Set the title"
308
-       3 $"Set post expiry period (currently $GNUSOCIAL_EXPIRE_MONTHS months)"
309
-       4 $"Select Qvitter user interface"
310
-       5 $"Select Pleroma user interface"
311
-       6 $"Select Classic user interface")
312
-
313 306
     read_config_param GNUSOCIAL_EXPIRE_MONTHS
314 307
     while true
315 308
     do
309
+        W=(1 $"Set a background image"
310
+           2 $"Set the title"
311
+           3 $"Set post expiry period (currently $GNUSOCIAL_EXPIRE_MONTHS months)"
312
+           4 $"Select Qvitter user interface"
313
+           5 $"Select Pleroma user interface"
314
+           6 $"Select Classic user interface")
315
+
316 316
         # shellcheck disable=SC2068
317 317
         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)
318 318
 

+ 7
- 7
src/freedombone-app-postactiv View File

@@ -317,16 +317,16 @@ function postactiv_set_expire_months {
317 317
 }
318 318
 
319 319
 function configure_interactive_postactiv {
320
-    W=(1 $"Set a background image"
321
-       2 $"Set the title"
322
-       3 $"Set post expiry period (currently $POSTACTIV_EXPIRE_MONTHS months)"
323
-       4 $"Select Qvitter user interface"
324
-       5 $"Select Pleroma user interface"
325
-       6 $"Select Classic user interface")
326
-
327 320
     read_config_param "POSTACTIV_EXPIRE_MONTHS"
328 321
     while true
329 322
     do
323
+        W=(1 $"Set a background image"
324
+           2 $"Set the title"
325
+           3 $"Set post expiry period (currently $POSTACTIV_EXPIRE_MONTHS months)"
326
+           4 $"Select Qvitter user interface"
327
+           5 $"Select Pleroma user interface"
328
+           6 $"Select Classic user interface")
329
+
330 330
         # shellcheck disable=SC2068
331 331
         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)
332 332