Compare commits

...

1 Commits

Author SHA1 Message Date
Vincent Riquer
220e756866 Treat destination in the order they are declared 2025-01-21 02:15:36 +01:00
4 changed files with 4 additions and 4 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]

View File

@ -1,6 +1,6 @@
#!/bin/bash
createDestinations() {
for destination in ${!destinationpath[@]}
for destination in ${destinations[@]}
do
if ! [ -d "${destinationpath["$destination"]}" ]
then