summaryrefslogtreecommitdiff
path: root/util/amdtools
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2023-08-08 17:54:05 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-08-10 12:40:54 +0000
commit42af60c166cd1e0a02f687f39e7da1fbf519820a (patch)
tree4c0d210a98d183bbfb93a5442f9b2279930f63cf /util/amdtools
parente67513e353cd5fa5793e973cf0679a332d930e05 (diff)
util/scripts/update_submodules: Fix branch name greping
The command "git branch -a | grep -q ${branch}" may not exit with 0 when pipefail is set. "grep -q" exits immediately with exit code 0 as soon as a match is found. However, at that point "git branch -a" may be still writing to the pipe, leading to SIGPIPE. When pipefail is set, PIPESTATUS 141 will be returned. Fix the problem by not using "grep -q". Also fix the branch name in the generated commit subject. Change-Id: Ic07efb5e2a4f3b7bbc6e76da9e026771bc685bdb Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77085 Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdtools')
0 files changed, 0 insertions, 0 deletions