summaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-05-21 23:35:32 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-06-06 17:45:15 +0200
commitc2692111495e30b347c4be5d4228f8e7b8cbfed4 (patch)
treed0f3ae648bad6a2686c98c04f0267e70950edfaa /util/crossgcc/buildgcc
parent4a47e4b8eedafa3f2099393de1f00365d1846ee5 (diff)
downloadcoreboot-c2692111495e30b347c4be5d4228f8e7b8cbfed4.tar.xz
buildgcc: Fix color output in download_showing_percentage
Probably this was never tested as the return to no color "\033[0m" was printed verbatim. Change-Id: I7e6e1049b062ffb138ebdaeb62ddc49581ff8db1 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/19811 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc2
1 files changed, 1 insertions, 1 deletions
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() {