diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2022-06-08 13:35:46 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-23 19:26:12 +0000 |
commit | a729c3f95d6c6d98c4e4d3500cc7535bf2ceee8a (patch) | |
tree | 71162c877dbd7c6aeb7246f3d0426fa91bc4c7a5 /tests/gen_test_vbpubks.sh | |
parent | 6bcf9f7b7913604368cde04f681ece204779c240 (diff) | |
download | vboot-a729c3f95d6c6d98c4e4d3500cc7535bf2ceee8a.tar.gz |
tests: Fix most of errors reported by shellcheck
BUG=none
BRANCH=none
TEST=make runtests
Signed-off-by: Jakub Czapiga <czapiga@google.com>
Change-Id: I364ac6ace35705f1cfdaec71297523d4c2132b75
Disallow-Recycled-Builds: test-failures
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3695417
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests/gen_test_vbpubks.sh')
-rwxr-xr-x | tests/gen_test_vbpubks.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/gen_test_vbpubks.sh b/tests/gen_test_vbpubks.sh index 8ea2759d..a318d3dc 100755 --- a/tests/gen_test_vbpubks.sh +++ b/tests/gen_test_vbpubks.sh @@ -11,16 +11,16 @@ function generate_vpubks { algorithmcounter=0 - for keylen in ${key_lengths[@]} + for keylen in "${key_lengths[@]}" do - for hashalgo in ${hash_algos[@]} + for hashalgo in "${hash_algos[@]}" do - ${FUTILITY} vbutil_key --pack \ - --in ${TESTKEY_DIR}/key_rsa${keylen}.keyb \ - --out ${TESTKEY_DIR}/key_rsa${keylen}.${hashalgo}.vbpubk \ + "${FUTILITY}" vbutil_key --pack \ + --in "${TESTKEY_DIR}/key_rsa${keylen}.keyb" \ + --out "${TESTKEY_DIR}/key_rsa${keylen}.${hashalgo}.vbpubk" \ --version 1 \ - --algorithm ${algorithmcounter} - let algorithmcounter=algorithmcounter+1 + --algorithm "${algorithmcounter}" + algorithmcounter=$((algorithmcounter + 1)) done done } |