also keep non greped lines.
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/pr/lint Pipeline failed

This commit is contained in:
Mael G. 2025-01-06 23:37:04 +01:00
parent ec22cbb365
commit 95f5c919f1

View file

@ -2,7 +2,10 @@ set -o pipefail
sh .ci/lint.sh 2>&1 | tee output_tmp.txt
EXIT_CODE=$?
echo "\`\`\`" > output.txt
grep 'msg=' output_tmp.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' >> output.txt
grep -n 'msg=' output_tmp.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' >> output.txt
grep -v 'msg=' output_tmp.txt >> output.txt
echo "\`\`\`" >> output.txt
echo "END"
exit $EXIT_CODE
exit $EXIT_CODE