From 7c16cc2cdcbf861034afceec9c30765a458ba17b Mon Sep 17 00:00:00 2001 From: devtool importer Date: Fri, 7 Oct 2022 17:11:28 -0400 Subject: [PATCH] fix propagation script --- sync/propagate-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/propagate-image.sh b/sync/propagate-image.sh index c9a65c6..e976e8d 100644 --- a/sync/propagate-image.sh +++ b/sync/propagate-image.sh @@ -21,7 +21,7 @@ SOURCE_AMI_NAME=$(aws --profile resf-ami ec2 describe-images \ # Enforce a name structure # Rocky-8-ec2-8.6-20220515.0.x86_64 -pat="Rocky-[89]-EC2-[89]\.[0-9]-[0-9]+\.[0-9]+\.((aarch|x86_)64|ppc64le|s390x)" +pat="Rocky-[89]-[Ee][Cc]2-[89]\.[0-9]-[0-9]+\.[0-9]+\.((aarch|x86_)64|ppc64le|s390x)" if [[ ! "${SOURCE_AMI_NAME}" =~ $pat ]]; then echo "Bad source ami (${SOURCE_AMI_NAME}). Exiting." exit 1