Escaped variables.

This commit is contained in:
Raphaël Numbus
2026-05-25 20:57:56 +02:00
parent 3c5a746413
commit 49fd4aeb5a
+7 -7
View File
@@ -172,14 +172,14 @@ detect_graphics() {
IFS="\${OLD_IFS}"
local obj
obj=$(jq -n \
--arg b "$brand" \
--arg r "$renderer" \
--arg p "$product" \
--argjson i "$integrated" \
'{brand: $b, renderer: $r, product: $p, integrated: $i}')
obj=\$(jq -n \
--arg b "\$brand" \
--arg r "\$renderer" \
--arg p "\$product" \
--argjson i "\$integrated" \
'{brand: \$b, renderer: \$r, product: \$p, integrated: \$i}')
gpus=$(echo "$gpus" | jq --argjson obj "$obj" '. += [$obj]')
gpus=\$(echo "\$gpus" | jq --argjson obj "\$obj" '. += [\$obj]')
append_to_report "graphics" "\$gpus"
}