File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ payload=$(cat <&0)
1010timestamp=$( jq --raw-output ' .version.timestamp // empty' <<< " ${payload}" )
1111
1212if [[ -z " ${timestamp} " ]]; then
13- echo ' []' >&3
13+ echo ' []' >&3
1414else
1515 jq --null-input \
1616 --arg " timestamp" " ${timestamp} " \
Original file line number Diff line number Diff line change @@ -63,9 +63,11 @@ cert_count=$(jq 'length' <<< "${raw_ca_certs}")
6363if [[ " ${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
You can’t perform that action at this time.
0 commit comments