Update logger to filter more text from buildroot install

This commit is contained in:
Jordan Carlin 2024-07-26 22:33:22 -07:00
parent cd91002fe9
commit c9ec609d67

View File

@ -67,7 +67,7 @@ git_check() {
# Log output to a file and only print lines with keywords
logger() {
local log="$RISCV/logs/$1.log"
cat < /dev/stdin | tee -a "$log" | (grep -iE --color=never "(\bwarning|\berror|\bfail|\bsuccess|\bstamp)" || true)
cat < /dev/stdin | tee -a "$log" | (grep -iE --color=never "(\bwarning|\berror|\bfail|\bsuccess|\bstamp)" || true) | (grep -viE --color=never "(Wno-error)" || true)
}
set -e # break on error