Prevent simple errors from killing containers

This commit is contained in:
1computer1 2019-06-01 01:21:22 -04:00
parent 2f38bc640c
commit 0acb75aad6
27 changed files with 42 additions and 36 deletions

View file

@ -6,10 +6,9 @@ printf %s "$1" > program.pas
res="$(fpc program.pas 2>&1)"
if [ $? -eq 0 ]; then
./program
./program || true
else
printf %s "$res"
exit 1
printf %s "$res"
fi
cd .. && rm -rf "$CODEDIR"