fix: prometheus output: use printf for proper \n interpretation (#204)

This commit is contained in:
Stéphane Lesimple 2018-06-21 23:35:51 +02:00
parent 60077c8d12
commit cf06636a3f

View File

@ -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