Prevent simple errors from killing containers
This commit is contained in:
parent
2f38bc640c
commit
0acb75aad6
27 changed files with 42 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue