docker-services/.ci/lint_wrap.sh

12 lines
304 B
Bash
Raw Normal View History

2025-01-06 21:32:33 +01:00
set -o pipefail
sh .ci/lint.sh 2>&1 | tee output_tmp.txt
2025-01-06 23:22:10 +01:00
EXIT_CODE=$?
2025-01-06 21:32:33 +01:00
echo "\`\`\`" > output.txt
2025-01-06 23:37:04 +01:00
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
2025-01-06 21:32:33 +01:00
echo "\`\`\`" >> output.txt
2025-01-06 23:22:10 +01:00
echo "END"
2025-01-06 23:37:04 +01:00
exit $EXIT_CODE