From 8dc3622d37768cb80a9660f726364bf40987f281 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 May 2018 14:55:58 -0300 Subject: Start threads in parallel so cotinuous mode works for all targets --- borger | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/borger b/borger index 8fe8e6d..792973c 100755 --- a/borger +++ b/borger @@ -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 -- cgit v1.2.3