fix: jq raw output (no quotes) when piping output to while loop

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-09-08 15:29:42 +02:00
parent 3e3d085465
commit 68146ef03c
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -5,6 +5,6 @@ if [ -z ${PLUGIN_IMAGES+x} ]; then
exit 1
fi
echo "${PLUGIN_IMAGES}" | jq '.[]' | while read -r image; do
echo "${PLUGIN_IMAGES}" | jq --raw-output '.[]' | while read -r image; do
cosign sign --key "${PLUGIN_KEY_PATH:-"./cosign.key"}" "${image}"
done