piston/docker/executors/go

6 lines
155 B
Plaintext
Executable File

cp /*.code interim.go
file="interim.go"
timeout -s KILL 10 go build $file
file=${file%%.*}
timeout -s KILL 3 bash -c "cat /*.args | xargs -d '\n' ./$file"