compiler-discord/docker/go/run.sh

8 lines
146 B
Bash
Raw Normal View History

mkdir "$CODEDIR" && cd "$CODEDIR"
export GOCACHE=/tmp/"$CODEDIR"/cache
printf %s "$1" > program.go
2019-03-13 05:37:09 +01:00
go run program.go
cd .. && rm -rf "$CODEDIR"