Merge pull request #2 from pmjdebruijn/master

supress status if not printing to a tty
This commit is contained in:
Christian Zangl 2020-01-24 21:02:43 +01:00 committed by GitHub
commit 619c45a420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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