From febf7a064ebf23a9aa27de445f66d9c05df59a37 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Mon, 17 Nov 2014 11:57:46 -0800 Subject: [PATCH] scripts/oem/ami: fix bad array subscript Broken in 8abceaa20e10ff5f3543a54e69b5accddfd5f7b9. --- oem/ami/copy_ami.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oem/ami/copy_ami.sh b/oem/ami/copy_ami.sh index a95b33d3d3..c0a2d4fbd8 100755 --- a/oem/ami/copy_ami.sh +++ b/oem/ami/copy_ami.sh @@ -33,7 +33,7 @@ GROUP="alpha" REGIONS=() add_region() { - if [[ -z "${ALL_REGIONS[$1]}" ]]; then + if [[ -z "${ALL_AKIS[$1]}" ]]; then echo "Invalid region '$1'" >&2; exit 1 fi