compiler-discord/docker/csharp/run.sh

11 lines
227 B
Bash
Raw Normal View History

2019-03-15 02:32:39 +01:00
if [ "$EVAL_EXPR" = "true" ]; then
printf %s "$1" | csharp -e
2019-03-15 02:32:39 +01:00
else
mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.cs
2019-03-15 02:32:39 +01:00
csc program.cs >/dev/null && mono program.exe
cd .. && rm -rf "$CODEDIR"
2019-03-15 02:32:39 +01:00
fi