outputting \r makes output unreadable in journald

This commit is contained in:
Pascal de Bruijn 2020-01-23 14:15:27 +01:00 committed by Pascal de Bruijn
parent a32e1bf36f
commit 46ef43f782

View File

@ -39,7 +39,7 @@ class Main:
self.total += 1
if self.verbose or not stat in [Stat.OK, Stat.SKIP]:
print(stat.value, path)
if not self.quiet:
if not self.quiet and sys.stdout.isatty():
print(self.total, end="\r")
def _parse_args(self):