From 7af0b19224a94119380c73fd42d740eeddcc5643 Mon Sep 17 00:00:00 2001 From: Tobias Rueetschi Date: Thu, 11 Jan 2018 09:19:43 +0100 Subject: [PATCH] send warning to stderr. 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()