also keep non greped lines.
This commit is contained in:
parent
ec22cbb365
commit
95f5c919f1
1 changed files with 5 additions and 2 deletions
|
@ -2,7 +2,10 @@ set -o pipefail
|
||||||
sh .ci/lint.sh 2>&1 | tee output_tmp.txt
|
sh .ci/lint.sh 2>&1 | tee output_tmp.txt
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
echo "\`\`\`" > output.txt
|
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 "\`\`\`" >> output.txt
|
||||||
echo "END"
|
echo "END"
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue