compiler-discord/docker/c/run.sh

7 lines
136 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > program.c
gcc program.c -o program && ./program || true
cd .. && rm -rf "$CODEDIR"