Skip to content

Commit

Permalink
ci: fix bash word splitting
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Howard <[email protected]>
  • Loading branch information
jhoward-lm committed Nov 18, 2024
1 parent 7b737ea commit 2c2ab97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function export_db_json {

[[ -z $rows ]] && rows="[]"

objects+=("$(printf '{"%s": %s}' "${table}" "${rows}")")
objects+=("$(echo "${rows}" | jq --arg table "${table}" '{($table): .}')")
done

output=$(echo "${objects[*]}" | jq --slurp 'reduce .[] as $obj ({}; . += $obj)')
Expand Down

0 comments on commit 2c2ab97

Please sign in to comment.