From fb2f82c442b24652eccc34f456e618c7a2a55be7 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sun, 21 May 2017 23:35:32 +0200 Subject: [PATCH] UPSTREAM: buildgcc: Fix color output in download_showing_percentage Probably this was never tested as the return to no color "\033[0m" was printed verbatim. BUG=none BRANCH=none TEST=none Change-Id: Ieb04b1359a1148f0f0b63f00ee2a438cffb4d442 Signed-off-by: Patrick Georgi Original-Commit-Id: c2692111495e30b347c4be5d4228f8e7b8cbfed4 Original-Change-Id: I7e6e1049b062ffb138ebdaeb62ddc49581ff8db1 Original-Signed-off-by: Nico Huber Original-Reviewed-on: https://review.coreboot.org/19811 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Stefan Reinauer Reviewed-on: https://chromium-review.googlesource.com/528185 Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi Reviewed-by: Patrick Georgi --- util/crossgcc/buildgcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index eafd92ee50..63abc59a02 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -901,7 +901,7 @@ if searchtool wget "GNU" nofail > /dev/null; then wget $url 2>&1 | while read line; do echo $line | grep -o "[0-9]\+%" | awk '{printf("\b\b\b\b%4s", $1)}' done - echo "${NC}" + printf "${NC}" } elif searchtool curl "^curl " > /dev/null; then download_showing_percentage() {