From e1d22580a522f3b50dafbe7521562122842dbebd Mon Sep 17 00:00:00 2001 From: Johnny Bieren Date: Fri, 13 Oct 2023 15:53:23 -0400 Subject: [PATCH] fix: merge-json doesn't merge properly Signed-off-by: Johnny Bieren --- utils/merge-json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/merge-json b/utils/merge-json index d5124dd..55d8efc 100755 --- a/utils/merge-json +++ b/utils/merge-json @@ -43,7 +43,7 @@ if ! echo "$json2" | jq -e . >/dev/null 2>&1; then fi # Merge the JSON objects -merged_json=$(printf '%s\n%s' "$json1" "$json2" | jq -cs add) +merged_json=$(printf '%s\n%s' "$json1" "$json2" | jq -cs '.[0] * .[1]') # Print the merged JSON echo "$merged_json"