Workaround for legacy Bash array expansion

Some older versions of Bash have a bug that treats '${array[@]}' as
an undefined variable access if the array is empty. Under normal
circumstances, it results in an empty string. However, this crashes
with 'set -u'. Since we do run with this setting for safety, and
Busytown seems to be using an affected version of Bash, replace uses
of this construct with '${array[@]+"${array[@]}"}'. Uses where the
array cannot be empty are left unchanged.

Analysis of the bug:

Change-Id: I1bbfbee3ac0266db531d5d4d693def8292bf7358
3 files changed
tree: 221ab152b769d77e1577b8589b91b9df8b697c12
  1. Makefile
  2. aarch64/
  4. kvm-unit-tests/