Treat destination in the order they are declared

This commit is contained in:
Vincent Riquer 2025-01-21 01:52:23 +01:00
parent 4e59449d40
commit caa4ea97ea
3 changed files with 3 additions and 3 deletions

2
atom
View File

@ -331,7 +331,7 @@ fi
openDatabase
for destination in "${!destinationpath[@]}"
for destination in "${destinations[@]}"
do
if (( ${destinationenabled["$destination"]} ))
then

View File

@ -21,7 +21,7 @@ printConfig() {
printed=1
done
unset printed
for destination in ${!destinationpath[@]}
for destination in ${destinations[@]}
do
cat <<-EOF

View File

@ -52,7 +52,7 @@ path $sourcepath
EOCfg
for destination in "${!destinationpath[@]}"
for destination in "${destinations[@]}"
do
cat <<-EOCfg
[$destination]