From 2652123fe1ce9d3a614b7370f01b69ee59c33ebb Mon Sep 17 00:00:00 2001 From: Jan Kunzmann Date: Fri, 8 Jun 2018 11:52:02 +0200 Subject: [PATCH] fix: line breaks in prometheus batch mode --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 5d74e6a..9409da5 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -3111,7 +3111,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" + echo -e "$prometheus_output" fi # exit with the proper exit code