Dogfood - Fix error in log on empty cert.00.pem, when retrieving rds tls certificate (#31515)

Fix for error log that is generated by csplit when determining the
correct certificate to use.

```
Could not find certificate from cert.00.pem
```
This commit is contained in:
Jorge Falcon 2025-08-01 12:54:11 -04:00 committed by GitHub
parent 79576fdaf5
commit e2340385a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@
apk add coreutils openssl
wget --quiet https://truststore.pki.rds.amazonaws.com/${aws_region}/${aws_region}-bundle.pem -O ${aws_region}-bundle.dl.pem
csplit -k -f cert. -b '%02d.pem' ${aws_region}-bundle.dl.pem '/-----BEGIN CERTIFICATE-----/' '{*}'
csplit -z -k -f cert. -b '%02d.pem' ${aws_region}-bundle.dl.pem '/-----BEGIN CERTIFICATE-----/' '{*}'
for filename in cert.*;
do