piston/docker/executors/go

10 lines
79 B
Bash
Executable File

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