diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-26 14:55:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-26 14:55:58 -0300 |
commit | 8dc3622d37768cb80a9660f726364bf40987f281 (patch) | |
tree | 4e64d6302bf3feec7952b00595892240c8963341 | |
parent | eedb6325a935fcf3b5ab9de12d87b5e9f2e429d6 (diff) | |
download | borger-8dc3622d37768cb80a9660f726364bf40987f281.tar.gz borger-8dc3622d37768cb80a9660f726364bf40987f281.tar.bz2 |
Start threads in parallel so cotinuous mode works for all targets
-rwxr-xr-x | borger | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -43,15 +43,16 @@ function borger_config { 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 |