... | ... |
@@ -14,8 +14,7 @@ function sqlite_request () { |
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
function create_database () { |
17 |
- declare -A groupes |
|
18 |
- if test -z "${groupes[@]}"; then |
|
17 |
+ if test ${#groupes[@]} -eq 0; then |
|
19 | 18 |
echo "unable to find groupes in $config_file" >&2 |
20 | 19 |
exit 1 |
21 | 20 |
fi |
... | ... |
@@ -477,6 +476,7 @@ test "$options_error" = $true_flag && exit 1 |
477 | 476 |
|
478 | 477 |
test -z "$database" && database="${0}.db" |
479 | 478 |
|
479 |
+declare -A groupes |
|
480 | 480 |
if test -n "$config_file"; then |
481 | 481 |
source "$config_file" |
482 | 482 |
else |