aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Baylis <charles.baylis@linaro.org>2016-04-28 15:37:16 +0100
committerRob Savoye <rob.savoye@linaro.org>2016-05-05 20:27:36 +0000
commite5529ee7faea79d9f6f5a4734cd14694ee5e575d (patch)
tree4511a899f33a63f1bc2702b5b5a4a13e9b8f799a
parent4fffef0190c4d9cda5e6fc50260b7155464c8eb2 (diff)
Reduce verbosity of wget output
Pass --progress=dot:giga when abe is run with output directed to a file. Change-Id: I5c0ecd03571815b4e42f94ebe5e348a4b0f64f3a
-rw-r--r--lib/globals.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/globals.sh b/lib/globals.sh
index d5a554b2..f21c1bba 100644
--- a/lib/globals.sh
+++ b/lib/globals.sh
@@ -50,8 +50,13 @@ prefix=
# line.
wget_timeout=10
wget_quiet=
-# Try something like "dot:mega"
-wget_progress_style=
+# if output is on a terminal we use the default style (bar), otherwise
+# we use the briefest available dot style to reduce the size of the logs
+if [ -t 1 ]; then
+ wget_progress_style=
+else
+ wget_progress_style=dot:giga
+fi
# This doesn't do any real work, just prints the configure options and make commands
dryrun=no