aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Rüetschi <tr@brief.li>2018-01-11 09:55:43 +0100
committerStéphane Lesimple <speed47_github@speed47.net>2018-01-11 09:55:43 +0100
commit52a8f7888565edeaf7e59a1b8e982bcee37a3791 (patch)
tree8ec09ac7707ef83733cb5130ddb5f60dff666010
parenta09a5ba38f301baae6bf1971383b951da36b27df (diff)
downloadspectre-meltdown-checker-52a8f7888565edeaf7e59a1b8e982bcee37a3791.tar.lz
spectre-meltdown-checker-52a8f7888565edeaf7e59a1b8e982bcee37a3791.tar.xz
spectre-meltdown-checker-52a8f7888565edeaf7e59a1b8e982bcee37a3791.zip
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.
-rwxr-xr-xspectre-meltdown-checker.sh2
1 files changed, 1 insertions, 1 deletions
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()