From 6c2dfce9a74294cc37013a63079a730c061c8c68 Mon Sep 17 00:00:00 2001 From: brent s Date: Thu, 5 Oct 2017 09:49:11 -0400 Subject: [PATCH] lol. --- arch/repoclone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/repoclone.py b/arch/repoclone.py index a9425ba..f210361 100755 --- a/arch/repoclone.py +++ b/arch/repoclone.py @@ -66,7 +66,7 @@ def sync(args): os.remove(args['lockfile']) # Only report errors at the end of the run if we aren't running in cron. Otherwise, log them. errors = c.stderr.decode('utf-8').splitlines() - if os.isatty(sys.stdin.fileno()): + if os.isatty(sys.stdin.fileno()) and errors: print('We encountered some errors:') for e in errors: if e.startswith('symlink has no referent: '):