aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorvolpino <fox91@anche.no>2012-07-24 08:10:56 +0200
committervolpino <fox91@anche.no>2012-07-24 08:10:56 +0200
commit2b09bfba8ace32b9e905bf001ec6bc7e6f82b149 (patch)
tree7fa9b2dc13ef9bf41c1bfa4eb7147d6aa0fa2498 /bin
parentMerge branch 'master' of https://github.com/iksaif/euscan (diff)
downloadeuscan-2b09bfba8ace32b9e905bf001ec6bc7e6f82b149.tar.gz
euscan-2b09bfba8ace32b9e905bf001ec6bc7e6f82b149.tar.bz2
euscan-2b09bfba8ace32b9e905bf001ec6bc7e6f82b149.zip
euscan: Progressbar on stderr
Signed-off-by: volpino <fox91@anche.no>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/euscan3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/euscan b/bin/euscan
index 8696848..4469f4e 100755
--- a/bin/euscan
+++ b/bin/euscan
@@ -36,6 +36,7 @@ from euscan import CONFIG, output
# Globals
isatty = os.environ.get('TERM') != 'dumb' and sys.stdout.isatty()
+isatty_stderr = os.environ.get('TERM') != 'dumb' and sys.stderr.isatty()
def exit_helper(status):
@@ -184,7 +185,7 @@ def parse_args():
CONFIG['nocolor'] = True
pp.output.nocolor()
elif o in ("-p", "--progress"):
- CONFIG['progress'] = isatty
+ CONFIG['progress'] = isatty_stderr
elif o in ("--mirror"):
CONFIG['mirror'] = True
elif o in ("-i", "--ignore-pre-release"):