From 39f22a41b515f4aa691e4d75ad54e8a53e0622c0 Mon Sep 17 00:00:00 2001 From: Luke Ceddia Date: Sat, 4 Jan 2020 23:09:53 +1100 Subject: [PATCH] Proper compile exit code --- .ci/compile.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.ci/compile.sh b/.ci/compile.sh index 9687f7a9a..68a0f96cf 100755 --- a/.ci/compile.sh +++ b/.ci/compile.sh @@ -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