mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
functions: DO_WITH_DEBUG: Label stderr/stdout more clearly
"$1 err:" looked like an error, but often there's output on stderr that's diagnostic (like kexec -d). "$1 stderr:" is clearer. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
015af7e6c7
commit
d8810b7032
@ -94,7 +94,7 @@ DO_WITH_DEBUG() {
|
||||
# - We capture PIPESTATUS[0] whether the command succeeds or fails,
|
||||
# since we don't know whether the pipeline status will be that of the
|
||||
# command or 'tee' (depends on set -o pipefail).
|
||||
if ! "$@" 2> >(tee /dev/stderr | SINK_DEBUG "$1 err") | tee >(SINK_DEBUG "$1 out"); then
|
||||
if ! "$@" 2> >(tee /dev/stderr | SINK_DEBUG "$1 stderr") | tee >(SINK_DEBUG "$1 stdout"); then
|
||||
exit_status="${PIPESTATUS[0]}"
|
||||
else
|
||||
exit_status="${PIPESTATUS[0]}"
|
||||
|
Loading…
Reference in New Issue
Block a user