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

@ -1,10 +1,10 @@
if [ "$EVAL_EXPR" = "true" ]; then
ghc -e "$1"
ghc -e "$1" || true
else
mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.hs
ghc -e main program.hs
ghc -e main program.hs || true
cd .. && rm -rf "$CODEDIR"
fi