Skip to content

Commit 4b5f5a3

Browse files
committed
Fix indent + Fix quoting/escaping issues
1 parent 4ab6576 commit 4b5f5a3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ payload=$(cat <&0)
1010
timestamp=$(jq --raw-output '.version.timestamp // empty' <<< "${payload}")
1111

1212
if [[ -z "${timestamp}" ]]; then
13-
echo '[]' >&3
13+
echo '[]' >&3
1414
else
1515
jq --null-input \
1616
--arg "timestamp" "${timestamp}" \

out

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ cert_count=$(jq 'length' <<< "${raw_ca_certs}")
6363
if [[ "${cert_count}" -gt 0 ]]; then
6464
cert_dir="/usr/local/share/ca-certificates/"
6565
mkdir -p "${cert_dir}"
66-
for idx in $(seq 0 "$((cert_count - 1))"); do
67-
domain=$(jq --raw-output ".[$idx].domain" <<< "${raw_ca_certs}")
68-
jq --raw-output --arg idx "${idx}" ".[$idx].cert" <<< "${raw_ca_certs}" \
66+
for idx in $( seq 0 $((cert_count - 1)) ); do
67+
domain=$(
68+
jq --raw-output --arg idx "${idx}" '.[$idx].domain' <<< "${raw_ca_certs}"
69+
)
70+
jq --raw-output --arg idx "${idx}" '.[$idx].cert' <<< "${raw_ca_certs}" \
6971
>> "${cert_dir}/ca-cert-${domain}.crt"
7072
done
7173
update-ca-certificates

0 commit comments

Comments
 (0)