piston/docker/executors/go

10 lines
80 B
Bash
Executable File

#!/bin/sh
file=$1
go build $file
file=${file%%.*}
timeout -s KILL 3 ./$file