Merge pull request #2 from pmjdebruijn/master
supress status if not printing to a tty
This commit is contained in:
commit
619c45a420
@ -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):
|
||||||
|
Reference in New Issue
Block a user