Skip to content

Commit 8e62bde

Browse files
committed
Fix shell fmt
1 parent 8400cfa commit 8e62bde

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

coderd/azureidentity/generate.sh

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22

33
# See: https://learn.microsoft.com/en-us/azure/security/fundamentals/azure-ca-details?tabs=certificate-authority-chains
44
declare -a CERTIFICATES=(
5-
"Microsoft RSA TLS CA 01=https://crt.sh/?d=3124375355"
6-
"Microsoft RSA TLS CA 02=https://crt.sh/?d=3124375356"
7-
"Microsoft Azure RSA TLS Issuing CA 03=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
8-
"Microsoft Azure RSA TLS Issuing CA 04=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
9-
"Microsoft Azure RSA TLS Issuing CA 07=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
10-
"Microsoft Azure RSA TLS Issuing CA 08=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
11-
"Microsoft Azure TLS Issuing CA 01=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2001.cer"
12-
"Microsoft Azure TLS Issuing CA 02=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2002.cer"
13-
"Microsoft Azure TLS Issuing CA 05=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2005.cer"
14-
"Microsoft Azure TLS Issuing CA 06=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2006.cer"
5+
"Microsoft RSA TLS CA 01=https://crt.sh/?d=3124375355"
6+
"Microsoft RSA TLS CA 02=https://crt.sh/?d=3124375356"
7+
"Microsoft Azure RSA TLS Issuing CA 03=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
8+
"Microsoft Azure RSA TLS Issuing CA 04=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
9+
"Microsoft Azure RSA TLS Issuing CA 07=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
10+
"Microsoft Azure RSA TLS Issuing CA 08=https://www.microsoft.com/pkiops/certs/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2003%20-%20xsign.crt"
11+
"Microsoft Azure TLS Issuing CA 01=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2001.cer"
12+
"Microsoft Azure TLS Issuing CA 02=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2002.cer"
13+
"Microsoft Azure TLS Issuing CA 05=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2005.cer"
14+
"Microsoft Azure TLS Issuing CA 06=https://www.microsoft.com/pki/certs/Microsoft%20Azure%20TLS%20Issuing%20CA%2006.cer"
1515
)
1616

1717
CONTENT="var Certificates = []string{"
1818

1919
for CERT in "${CERTIFICATES[@]}"; do
20-
IFS="=" read -r NAME URL <<< "$CERT"
21-
echo "Downloading certificate: $NAME"
22-
PEM=$(curl -sSL "$URL" | openssl x509 -outform PEM)
23-
echo "$PEM"
20+
IFS="=" read -r NAME URL <<<"$CERT"
21+
echo "Downloading certificate: $NAME"
22+
PEM=$(curl -sSL "$URL" | openssl x509 -outform PEM)
23+
echo "$PEM"
2424

25-
CONTENT+="\n// $NAME\n\`$PEM\`,"
25+
CONTENT+="\n// $NAME\n\`$PEM\`,"
2626
done
2727

2828
CONTENT+="\n}"
2929

3030
sed -i '/var Certificates = /,$d' azureidentity.go
3131
# shellcheck disable=SC2059
32-
printf "$CONTENT" >> azureidentity.go
32+
printf "$CONTENT" >>azureidentity.go
3333
gofmt -w azureidentity.go

0 commit comments

Comments
 (0)