... | ... |
@@ -468,18 +468,9 @@ trap save_database EXIT |
468 | 468 |
|
469 | 469 |
test -z "$database" && database="${0}.db" |
470 | 470 |
|
471 |
+echo "$0 $@" > $token_file |
|
471 | 472 |
declare -A acronymes |
472 |
-if test -n "$config_file"; then |
|
473 |
- source "$config_file" |
|
474 |
-else |
|
475 |
- config_file="${0}.conf" |
|
476 |
- if test -r "$config_file"; then |
|
477 |
- source "$config_file" |
|
478 |
- fi |
|
479 |
-fi |
|
480 |
- |
|
481 | 473 |
true_flag=$(mktemp --dry-run XXXXX) |
482 |
-echo "$0 $@" > $token_file |
|
483 | 474 |
|
484 | 475 |
while [[ $# -gt 0 ]]; do |
485 | 476 |
case "$1" in |
... | ... |
@@ -633,6 +624,15 @@ done |
633 | 624 |
|
634 | 625 |
test "$options_error" = $true_flag && exit 1 |
635 | 626 |
|
627 |
+if test -n "$config_file"; then |
|
628 |
+ source "$config_file" |
|
629 |
+else |
|
630 |
+ config_file="${0}.conf" |
|
631 |
+ if test -r "$config_file"; then |
|
632 |
+ source "$config_file" |
|
633 |
+ fi |
|
634 |
+fi |
|
635 |
+ |
|
636 | 636 |
while true; do |
637 | 637 |
if ls -1rt /dev/shm/*."${0##*/}" | head -1 | grep -q "^$token_file$"; then |
638 | 638 |
# c'est notre tour |