compiler-discord/docker/go/run.sh
2019-06-01 01:21:22 -04:00

7 lines
154 B
Bash

mkdir "$CODEDIR" && cd "$CODEDIR"
export GOCACHE=/tmp/"$CODEDIR"/cache
printf %s "$1" > program.go
go run program.go || true
cd .. && rm -rf "$CODEDIR"