compiler-discord/docker/java/run.sh

7 lines
127 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
printf %s "$1" > Main.java
javac Main.java && java Main || true
cd .. && rm -rf "$CODEDIR"