keep exit code
This commit is contained in:
parent
6d3def79f6
commit
ec22cbb365
1 changed files with 3 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue