Skip to content

Commit

Permalink
use the loop differently
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleene committed Dec 20, 2024
1 parent 14009e8 commit b537380
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/start-up-with-containers/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
EXTRA_KEYS: ${{ inputs.extra-keys }}
run: |
keylist='['
for json in $(jq -c '.[]' <<< "${EXTRA_KEYS}"); do
while IFS= read -r -d $'\0' json <&3; do
printf 'processing %s\n' "${json}"
pem="$(jq -r '.pem' <<< "${json}")"
kid="$(jq -r '.kid' <<< "${json}")"
Expand All @@ -61,8 +61,7 @@ runs:
keylist+=','
fi
keylist+="${keyobj}"
done
done 3< <(jq -c --raw-output0 '.[]' <<< "${EXTRA_KEYS}")
keylist+=']'
printf 'adding the following extra keys: %s\n' "${keylist}"
Expand Down

0 comments on commit b537380

Please sign in to comment.