diff --git a/atom b/atom index 5a5e8e2..671ca4e 100755 --- a/atom +++ b/atom @@ -331,7 +331,7 @@ fi openDatabase -for destination in "${!destinationpath[@]}" +for destination in "${destinations[@]}" do if (( ${destinationenabled["$destination"]} )) then diff --git a/lib/config/print b/lib/config/print index dea0d16..db25e0e 100644 --- a/lib/config/print +++ b/lib/config/print @@ -21,7 +21,7 @@ printConfig() { printed=1 done unset printed - for destination in ${!destinationpath[@]} + for destination in ${destinations[@]} do cat <<-EOF diff --git a/lib/config/write b/lib/config/write index 1b85c7b..7da7b3a 100644 --- a/lib/config/write +++ b/lib/config/write @@ -52,7 +52,7 @@ path $sourcepath EOCfg - for destination in "${!destinationpath[@]}" + for destination in "${destinations[@]}" do cat <<-EOCfg [$destination]