info "Multiple destination \"$DESTINATION\" found. Processing each subconfig..."
# Config is a folder, so we iterate over all items
- # and call borger for each config
+ # and call borger for each config in parallel
for config in `ls $CONFIG`; do
info "Calling borger for $DESTINATION/$config..."
- $FULLNAME $DESTINATION/$config $OPTION
+ $FULLNAME $DESTINATION/$config $OPTION &
done
# Since we dispatched everything to subprocesses,
# there's nothing to do here.
- exit
+ #exit
+ wait
fi
# Ensure we have an username