add support for bash
This commit is contained in:
parent
389f4ed335
commit
728c263c50
|
@ -61,6 +61,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
|||
"swift",
|
||||
"brainfuck", "bf",
|
||||
"rust",
|
||||
"bash",
|
||||
}
|
||||
|
||||
// check if the supplied language is supported
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
cd /tmp/$2
|
||||
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 bash code.code"
|
|
@ -0,0 +1 @@
|
|||
echo 'good'
|
Loading…
Reference in New Issue