mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-12-05 02:38:04 +01: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
|
||||
echo "# TYPE specex_vuln_status untyped"
|
||||
echo "# HELP specex_vuln_status Exposure of system to speculative execution vulnerabilities"
|
||||
echo "$prometheus_output"
|
||||
printf "%b\n" "$prometheus_output"
|
||||
fi
|
||||
|
||||
# exit with the proper exit code
|
||||
|
Loading…
Reference in New Issue
Block a user