1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 12:40:36 +00:00

Proper compile exit code

This commit is contained in:
Luke Ceddia 2020-01-04 23:09:53 +11:00
parent 4990cb798d
commit 39f22a41b5

View file

@ -1,10 +1,7 @@
#!/bin/bash
echo From git `echo $GITHUB_SHA | sed 's/\(.......\).*$/\1/'` > internal/version.txt
./qb64_bootstrap -x source/qb64.bas > /tmp/qb64-output
./qb64_bootstrap -x -v source/qb64.bas
SUCCESS=$?
rm qb64_bootstrap
if [ `grep -v '^WARNING' /tmp/qb64-output | wc -l` -gt 2 ]; then
cat /tmp/qb64-output
rm /tmp/qb64-output
exit 1
fi
exit $SUCCESS