From 8d58ec1e92c8fd8ca04b419f1fe2486401c18e9e Mon Sep 17 00:00:00 2001 From: Dmitry Lomov Date: Tue, 24 Oct 2017 14:43:07 +0200 Subject: Do not output Bazel leaves to logs. Unicode characters are trouble we do not want. Change-Id: I5f5239baab60a875a697f2ee3104225e19c0ce1d PiperOrigin-RevId: 173245285 --- scripts/bootstrap/buildenv.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/bootstrap') diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh index 9301483180..c7e381c33e 100755 --- a/scripts/bootstrap/buildenv.sh +++ b/scripts/bootstrap/buildenv.sh @@ -228,7 +228,11 @@ function new_step() { else new_line="\n" fi - display -n "$new_line$LEAVES $1" + if [ -t 2 ]; then + display -n "$new_line$LEAVES $1" + else + display -n "$new_line$1" + fi } function git_sha1() { -- cgit v1.2.3