keycfg: handle arrays appropriately in key_config

Since key_config.sh was previously set to declare arrays but not export
them (because bash doesn't support array exporting), loem support wasn't
working and we were falling back on private key files in the directory.
Use process substitution to declare the arrays outside the script and
pass them through so they key_config.sh files can just populate the
already declared array.

BUG=b:306438423
BRANCH=None
TEST=unit-test

Signed-off-by: Benjamin Shai <bshai@google.com>
Change-Id: I873d3ac574f27af583da11159e5ea6d669be9b1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/5375208
Reviewed-by: George Engelbrecht <engeg@google.com>
1 file changed