mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2025-04-18 20:25:15 +02:00
fix: prometheus output: use printf for proper \n interpretation (#204)
This commit is contained in:
parent
60077c8d12
commit
cf06636a3f
@ -3126,7 +3126,7 @@ fi
|
|||||||
if [ "$opt_batch" = 1 ] && [ "$opt_batch_format" = "prometheus" ]; then
|
if [ "$opt_batch" = 1 ] && [ "$opt_batch_format" = "prometheus" ]; then
|
||||||
echo "# TYPE specex_vuln_status untyped"
|
echo "# TYPE specex_vuln_status untyped"
|
||||||
echo "# HELP specex_vuln_status Exposure of system to speculative execution vulnerabilities"
|
echo "# HELP specex_vuln_status Exposure of system to speculative execution vulnerabilities"
|
||||||
echo "$prometheus_output"
|
printf "%b\n" "$prometheus_output"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# exit with the proper exit code
|
# exit with the proper exit code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user