Permalink
Browse files

Bugfix: `2>&1` must come after `>somewhere`, otherwise errors are not…

… recorded

as expected.


git-svn-id: file:///var/svn/freetz/trunk@8663 149334a1-2f27-0410-a3b9-fc62619ac1e6
  • Loading branch information...
1 parent 0f3aa92 commit 6759b0759cdce3dc3b905fbbca9ee58116a17fd3 kriegaex committed Feb 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 fmake
View
4 fmake
@@ -119,15 +119,15 @@ FMAKE_TARGET="$@"
time make "$@" 2>&1 | tee "$FMAKE_LOG"
else
# Log file only
- time make "$@" 2>&1 >"$FMAKE_LOG"
+ time make "$@" >"$FMAKE_LOG" 2>&1
fi
else
if [ $DO_CONS -eq 1 ]; then
# Console only
time make "$@" 2>&1
else
# Silent make (no output)
- time make "$@" 2>&1 >/dev/null
+ time make "$@" >/dev/null 2>&1
fi
fi
} 2>fmake.time;

0 comments on commit 6759b07

Please sign in to comment.