diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2022-08-15 18:29:45 +0800 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2024-04-16 13:55:22 +0000 |
commit | b921782385984b08b28da5d4af9fcc2e4ea3d82e (patch) | |
tree | eb5bdd86ba9ddf9117689d9d2f740858332811aa /src/mainboard/libretrend/lt1000/gma-mainboard.ads | |
parent | 3e5cefcc45d7ef7da9fd9b6ecc499a05f8134039 (diff) |
buildgcc: Match the string of downloading percentage more precisely
The command "wget" prints some hyperlink with "%", which will be
filtered in by previous regular expression. So we need to change to
match the string with exactly 3 digits and a percent symbol.
TEST:
echo 45% | grep -o "\<[0-9]\{1,3\}%"
45%
echo 1245% | grep -o "\<[0-9]\{1,3\}%"
<empty>
echo aa% | grep -o "\<[0-9]\{1,3\}%"
<empty>
Change-Id: I6ef9e7c87fd4ee6cc707346954d91e6e3af3b939
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66743
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/mainboard/libretrend/lt1000/gma-mainboard.ads')
0 files changed, 0 insertions, 0 deletions