compiler-discord/docker/fsharp/run.sh

7 lines
161 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.fs
fsharpc --optimize- program.fs >/dev/null && mono program.exe || true
cd .. && rm -rf "$CODEDIR"