kas-container: write debug messages to stderr

The kas-container trace / debug infrastructure has to write to stderr to
not interfer with kas output to stdout. Note, that the kas debug
messages already write to stderr. By that, the kas-container script can
be used in pipes similar to a direct invocation of kas.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Felix Moessbauer 2022-11-22 04:49:02 +01:00 committed by Jan Kiszka
parent 1a2de8daa7
commit 9bb1af5ecd

View File

@ -78,7 +78,7 @@ usage()
trace()
{
[ -n "${KAS_VERBOSE}" ] && echo "+ $*"
[ -n "${KAS_VERBOSE}" ] && echo "+ $*" >&2
"$@"
}