Escaped variables.
This commit is contained in:
+7
-7
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user