diff options
author | Rob Barnes <robbarnes@google.com> | 2020-03-17 20:57:21 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-24 17:38:36 +0000 |
commit | a998ed58624eff227a0895a7b56abe48780235c0 (patch) | |
tree | 13f2a32eefa194f1b3cfcdcd55ef4c1d34de3f38 /scripts | |
parent | b7b419d2fe421aff64fff31f785da8e26f5bf867 (diff) | |
download | vboot-a998ed58624eff227a0895a7b56abe48780235c0.tar.gz |
vboot: Fixes bug in get_gbb_flags.sh -e
get_gbb_flags.sh outputs incorrect information because the hex number is not
parsed correctly.
BUG=none
TEST=Manual
BRANCH=none
Change-Id: Ie6428a5c50d48ae5d732b31d7a8e7b314653c2d9
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2108286
Reviewed-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/image_signing/get_gbb_flags.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/image_signing/get_gbb_flags.sh b/scripts/image_signing/get_gbb_flags.sh index a6aa89a1..2b78af61 100755 --- a/scripts/image_signing/get_gbb_flags.sh +++ b/scripts/image_signing/get_gbb_flags.sh @@ -34,7 +34,7 @@ main() { # Keep 'local' declaration split from assignment so return code is checked. local gbb_flags gbb_flags="$(futility gbb -g --flags "${image_file}")" - local raw_gbb_flags="$(echo "${gbb_flags}" | egrep -o "0x[0-9]+")" + local raw_gbb_flags="$(echo "${gbb_flags}" | egrep -o "0x[0-9a-fA-F]+")" printf "Chrome OS GBB set ${gbb_flags}\n" if [ "${FLAGS_explicit}" = "${FLAGS_TRUE}" ]; then |