From e17470377878cd5b2d1593133079c382fe098525 Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Tue, 18 Jul 2017 18:02:47 -0700 Subject: [PATCH] core_sign_update: fix flag parsing for keys_separator Introduced in #710, whoops. --- core_sign_update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core_sign_update b/core_sign_update index 20159cf255..b2bb40350a 100755 --- a/core_sign_update +++ b/core_sign_update @@ -20,7 +20,7 @@ DEFINE_string kernel "" "The kernel image" DEFINE_string output "" "Output file" DEFINE_string private_keys "" "Path or pkcs11 URI to private keys." DEFINE_string public_keys "" "Path to public keys in .pem format." -DEFINE string keys_separator ":" "Separator for the above keys" +DEFINE_string keys_separator ":" "Separator for the above keys" # Parse command line FLAGS "$@" || exit 1 @@ -47,8 +47,8 @@ delta_generator \ -out_file update # The separator is configurable for backwards compatibility with old `sign.sh` scripts. -IFS="${keys_separator}" read -a private_keys <<< "$FLAGS_private_keys" -IFS="${keys_separator}" read -a public_keys <<< "$FLAGS_public_keys" +IFS="${FLAGS_keys_separator}" read -a private_keys <<< "$FLAGS_private_keys" +IFS="${FLAGS_keys_separator}" read -a public_keys <<< "$FLAGS_public_keys" if [ ${#private_keys[@]} -ne ${#public_keys[@]} ]; then echo "mismatch in count of private keys and public keys"