From 52cc0ef6bc872c0a243270640f33622d4c904224 Mon Sep 17 00:00:00 2001 From: javalsai Date: Wed, 16 Jul 2025 20:22:50 +0200 Subject: [PATCH] ci: fix CI warning count --- assets/github_scripts/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/github_scripts/build.sh b/assets/github_scripts/build.sh index fc36a1a..f407d8a 100755 --- a/assets/github_scripts/build.sh +++ b/assets/github_scripts/build.sh @@ -13,8 +13,8 @@ make -j"$(nproc)" "$@" 2> /tmp/stderr || ERR=$? BSIZE=$(stat --printf="%s" lidm) HSIZE=$(numfmt --to=iec-i<<<"$BSIZE")B WARNS=$( - sed -E \ - 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/' \ + sed -nE \ + 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/p' \ /tmp/stderr ) WARNS_NUM=$({ [[ "$WARNS" == "" ]] && echo 0; } || wc -l <<<"$WARNS")