]> arthur.barton.de Git - bup.git/commitdiff
split: Don't show progress when quiet option is enabled
authorAlexander Barton <alex@barton.de>
Wed, 31 Dec 2014 01:05:26 +0000 (02:05 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 31 Dec 2014 17:48:35 +0000 (18:48 +0100)
Signed-off-by: Alexander Barton <alex@barton.de>
cmd/split-cmd.py

index 265d56da97b9f2f3847845cddbd7f46e7f1d41fe..39fea85d5748fe9099fce00f5c45d16124f2f39a 100755 (executable)
@@ -68,6 +68,8 @@ total_bytes = 0
 def prog(filenum, nbytes):
     global total_bytes
     total_bytes += nbytes
+    if opt.quiet:
+        return
     if filenum > 0:
         progress_update('Splitting: file #%d, %d kbytes ...'
                         % (filenum+1, total_bytes/1024), False)