From d21aeb44e06eb8259179edb3f7e330a07f8b908f Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 18 Feb 2025 08:57:38 +0100 Subject: [PATCH] utils/brmake: simplify redirection We want to redirect both stdout and stderr to the log, so just do both redirections at once. This simplifies the call to make, which was inherited from afdb545b2847 (tools: new tool to filter the output of make) when brmake was using unbuffer (and even then it was not entirely waranted to do the redirection that way). Signed-off-by: Yann E. MORIN Signed-off-by: Arnout Vandecappelle --- utils/brmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/brmake b/utils/brmake index 4b9179e415..a4b9e7fa71 100755 --- a/utils/brmake +++ b/utils/brmake @@ -7,8 +7,8 @@ main() { start=${SECONDS} - ( exec 2>&1; make "${@}" ) \ - > >( while read -r line; do + make "${@}" \ + &> >( while read -r line; do printf "%(%Y-%m-%dT%H:%M:%S)T %s\n" -1 "${line}" done \ |tee -a br.log \