mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 04:26:59 +02:00
core_sign_update: use version 2 if only 1 key is provided
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
0ba64271c4
commit
f37db1f3b1
@ -163,8 +163,13 @@ delta_generator --signature_file ${files} --in_file update --out_file update.sig
|
||||
|
||||
i=1
|
||||
for key in "${public_keys[@]}"; do
|
||||
version="${i}"
|
||||
if [ ${#public_keys[@]} == 1 ]; then
|
||||
version=2
|
||||
fi
|
||||
|
||||
delta_generator \
|
||||
--public_key_version "${i}" \
|
||||
--public_key_version "${version}" \
|
||||
--public_key "${key}" \
|
||||
--in_file update.signed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user