Fix unbound variable expansion in add-package jq filters

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls3ump7hcv4oNnjWW5AXmn
This commit is contained in:
David Heinemeier Hansson
2026-08-05 22:54:04 +02:00
co-authored by Claude Fable 5
parent b73a15f4ec
commit 98628968a3
+2 -2
View File
@@ -130,7 +130,7 @@ jq_filter='{source: $source}'
if [[ "$SOURCE" == "aur" && -n "$AUR_PACKAGE" && "$AUR_PACKAGE" != "$PACKAGE" ]]; then
jq_args+=(--arg aur "$AUR_PACKAGE")
jq_filter="$jq_filter + {aur: $aur}"
jq_filter="$jq_filter + {aur: \$aur}"
fi
if [[ "$SOURCE" == "aur" && "$SYNC" == "false" ]]; then
@@ -139,7 +139,7 @@ fi
if [[ -n "$RELEASE_RING" ]]; then
jq_args+=(--arg release_ring "$RELEASE_RING")
jq_filter="$jq_filter + {release_ring: $release_ring}"
jq_filter="$jq_filter + {release_ring: \$release_ring}"
fi
jq -n "${jq_args[@]}" "$jq_filter" > "$METADATA_FILE"