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:
1 parent
b73a15f4ec
commit
98628968a3
1 file changed
+2
-2
+2
-2
@@ -130,7 +130,7 @@ jq_filter='{source: $source}'
|
|||||||
|
|
||||||
if [[ "$SOURCE" == "aur" && -n "$AUR_PACKAGE" && "$AUR_PACKAGE" != "$PACKAGE" ]]; then
|
if [[ "$SOURCE" == "aur" && -n "$AUR_PACKAGE" && "$AUR_PACKAGE" != "$PACKAGE" ]]; then
|
||||||
jq_args+=(--arg aur "$AUR_PACKAGE")
|
jq_args+=(--arg aur "$AUR_PACKAGE")
|
||||||
jq_filter="$jq_filter + {aur: $aur}"
|
jq_filter="$jq_filter + {aur: \$aur}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$SOURCE" == "aur" && "$SYNC" == "false" ]]; then
|
if [[ "$SOURCE" == "aur" && "$SYNC" == "false" ]]; then
|
||||||
@@ -139,7 +139,7 @@ fi
|
|||||||
|
|
||||||
if [[ -n "$RELEASE_RING" ]]; then
|
if [[ -n "$RELEASE_RING" ]]; then
|
||||||
jq_args+=(--arg release_ring "$RELEASE_RING")
|
jq_args+=(--arg release_ring "$RELEASE_RING")
|
||||||
jq_filter="$jq_filter + {release_ring: $release_ring}"
|
jq_filter="$jq_filter + {release_ring: \$release_ring}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
jq -n "${jq_args[@]}" "$jq_filter" > "$METADATA_FILE"
|
jq -n "${jq_args[@]}" "$jq_filter" > "$METADATA_FILE"
|
||||||
|
|||||||
Reference in new issue
Block a user