Skip to content

Commit df6eda9

Browse files
author
Alfonso Cancellara
committed
fix: "collect-firmware-refvals" failing with jq null (#102)
1 parent 391662b commit df6eda9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/collect-firmware-refvals.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ echo "Extracting reference values..."
174174
# -r ensures the embedded JSON string is output raw (not quoted),
175175
# which is required for yq v3 (kislyuk/yq) compatibility.
176176
# yq v4 (mikefarah/yq) outputs raw scalars by default but -r is harmless.
177-
yq -r '.data["reference-values.json"]' "$TEMP_DIR/rvps-reference-values.yaml" | \
178-
jq '[.[] | {(.name): .value}] | add' > "$OUTPUT_FILE"
177+
yq -r '.data.reference_value' "$TEMP_DIR/rvps-reference-values.yaml" | \
178+
jq 'map_values(@base64d | fromjson)' > "$OUTPUT_FILE"
179179

180180
# Save output
181181
mkdir -p "$(dirname "$OUTPUT_FILE")"

0 commit comments

Comments
 (0)