Преглед на файлове

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 <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
Yann E. MORIN преди 5 месеца
родител
ревизия
d21aeb44e0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      utils/brmake

+ 2 - 2
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 \