mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-04 22:20:24 +00:00
Proper compile exit code
This commit is contained in:
parent
4990cb798d
commit
39f22a41b5
|
@ -1,10 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo From git `echo $GITHUB_SHA | sed 's/\(.......\).*$/\1/'` > internal/version.txt
|
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
|
rm qb64_bootstrap
|
||||||
if [ `grep -v '^WARNING' /tmp/qb64-output | wc -l` -gt 2 ]; then
|
exit $SUCCESS
|
||||||
cat /tmp/qb64-output
|
|
||||||
rm /tmp/qb64-output
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue