mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-04 23:30:24 +00:00
Proper compile exit code
This commit is contained in:
parent
4990cb798d
commit
39f22a41b5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue