From 52a8f7888565edeaf7e59a1b8e982bcee37a3791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20R=C3=BCetschi?= Date: Thu, 11 Jan 2018 09:55:43 +0100 Subject: [PATCH] send warning to stderr. (#53) With --batch json there must not be any other output on stdout, so redirect warnings to stderr will show the warning on the console and only the json output is on stdout. --- 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 50ad972..d84f05e 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -122,7 +122,7 @@ _echo_nol() _warn() { - _echo 0 "\033[31m${@}\033[0m" + _echo 0 "\033[31m${@}\033[0m" >&2 } _info()