keep exit code

This commit is contained in:
Mael G. 2025-01-06 23:22:10 +01:00
parent 6d3def79f6
commit ec22cbb365

View file

@ -1,7 +1,8 @@
set -o pipefail 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=$?
echo "\`\`\`" > output.txt echo "\`\`\`" > output.txt
grep 'msg=' output_tmp.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' >> output.txt grep 'msg=' output_tmp.txt | awk -F'msg="' '{print $2}' | sed 's/"$//' | sed 's/\\"/"/g' >> output.txt
echo $?
echo "\`\`\`" >> output.txt echo "\`\`\`" >> output.txt
echo "END" echo "END"
exit $EXIT_CODE