compiler-discord/docker/csharp/run.sh

10 lines
204 B
Bash

if [ "$EVAL_EXPR" = "true" ]; then
csharp -e "$1"
else
mkdir "$COUNT" && cd "$COUNT"
echo "$1" > program.cs
csc program.cs >/dev/null && mono program.exe
cd .. && rm -rf "$COUNT"
fi