Escaped variables.
This commit is contained in:
+7
-7
@@ -172,14 +172,14 @@ detect_graphics() {
|
|||||||
IFS="\${OLD_IFS}"
|
IFS="\${OLD_IFS}"
|
||||||
|
|
||||||
local obj
|
local obj
|
||||||
obj=$(jq -n \
|
obj=\$(jq -n \
|
||||||
--arg b "$brand" \
|
--arg b "\$brand" \
|
||||||
--arg r "$renderer" \
|
--arg r "\$renderer" \
|
||||||
--arg p "$product" \
|
--arg p "\$product" \
|
||||||
--argjson i "$integrated" \
|
--argjson i "\$integrated" \
|
||||||
'{brand: $b, renderer: $r, product: $p, integrated: $i}')
|
'{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"
|
append_to_report "graphics" "\$gpus"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user