From bab01172b972ba18bf3c5bf0afddffb2f44c61b3 Mon Sep 17 00:00:00 2001 From: "v.karaychentsev" <105486287+vk-aterise@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:50:31 +0300 Subject: [PATCH] try fix yq parser --- shared/sops-decrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/sops-decrypt.sh b/shared/sops-decrypt.sh index c4c37a2..3d2408a 100644 --- a/shared/sops-decrypt.sh +++ b/shared/sops-decrypt.sh @@ -32,7 +32,7 @@ for service_dir in ./*/; do install -d -m "$DIR_MODE" -o root -g "$SECRETS_GROUP" -- "$out_dir" sops -d "$secrets_file" \ - | yq -r -0 'to_entries[] | .key, .value' \ + | yq -r -0 'to_entries[] | "\(.key)\u0000\(.value)\u0000"' \ | while IFS= read -r -d '' key && IFS= read -r -d '' value; do [[ "$key" =~ ^[A-Za-z0-9_][-A-Za-z0-9_]*$ ]] || { echo "skip bad key: $key" >&2; continue; }