]> gitweb.fluxo.info Git - borger.git/commitdiff
Display thread name in the output for the continuous mode
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 20:31:02 +0000 (17:31 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 20:31:02 +0000 (17:31 -0300)
borger

diff --git a/borger b/borger
index 792973c5a83d3b4cf5c1a82745b181e570d0ecc9..b16e1ebf6d70da6c8a4c7524303657737193eecf 100755 (executable)
--- a/borger
+++ b/borger
@@ -46,7 +46,7 @@ function borger_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 2>&1 | sed -e "s/^\[borger\]/[borger] [$config]/" -e "s/^\([^\[]\)/[borger] [$config] \1/" ) &
     done
 
     # Since we dispatched everything to subprocesses,