11 lines
304 B
Bash
Executable file
11 lines
304 B
Bash
Executable file
set -o pipefail
|
|
sh .ci/lint.sh 2>&1 | tee output_tmp.txt
|
|
EXIT_CODE=$?
|
|
echo "\`\`\`" > 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
|