... | ... |
@@ -435,6 +435,18 @@ function dernier_scrutin_public () { |
435 | 435 |
|
436 | 436 |
trap save_database EXIT |
437 | 437 |
|
438 |
+test -z "$database" && database="${0}.db" |
|
439 |
+ |
|
440 |
+declare -A acronymes |
|
441 |
+if test -n "$config_file"; then |
|
442 |
+ source "$config_file" |
|
443 |
+else |
|
444 |
+ config_file="${0}.conf" |
|
445 |
+ if test -r "$config_file"; then |
|
446 |
+ source "$config_file" |
|
447 |
+ fi |
|
448 |
+fi |
|
449 |
+ |
|
438 | 450 |
true_flag=$(mktemp --dry-run XXXXX) |
439 | 451 |
|
440 | 452 |
OPTS=$( getopt -l no-db-update,\ |
... | ... |
@@ -568,15 +580,6 @@ test "$options_error" = $true_flag && exit 1 |
568 | 580 |
|
569 | 581 |
test -z "$database" && database="${0}.db" |
570 | 582 |
|
571 |
-declare -A groupes |
|
572 |
-if test -n "$config_file"; then |
|
573 |
- source "$config_file" |
|
574 |
-else |
|
575 |
- config_file="${0}.conf" |
|
576 |
- if test -r "$config_file"; then |
|
577 |
- source "$config_file" |
|
578 |
- fi |
|
579 |
-fi |
|
580 | 583 |
|
581 | 584 |
IFS=',' groupe=(${groupe[0]:-LREM} ${groupe_ref:-GDR}) |
582 | 585 |
|