Skip to content

Commit 6f94605

Browse files
committed
CI: old stack cleanup uses GNU-compatible [[:digit:]] not \d
Running on GNU/Linux grep, nothing was being matched, so nothing was being cleaned up.
1 parent 31963b0 commit 6f94605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/steps/cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ aws cloudformation describe-stacks \
5353
--output text \
5454
--query "$(printf 'Stacks[?CreationTime<`%s`].[StackName]' "$cutoff_date" )" \
5555
| xargs -n1 \
56-
| grep -E 'buildkite-aws-stack-test-(linux|windows)-(amd64|arm64)-\d+' \
56+
| grep -E 'buildkite-aws-stack-test-(linux|windows)-(amd64|arm64)-[[:digit:]]+' \
5757
| xargs -n1 -t -I% aws cloudformation delete-stack --stack-name "%"
5858

5959
echo "--- Deleting old packer builders"

0 commit comments

Comments
 (0)