mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
update piston
This commit is contained in:
parent
16f4c03a80
commit
27f4443719
3 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,9 @@ case "$lang" in
|
|||
"swift")
|
||||
bin=swift
|
||||
;;
|
||||
"brainfuck" | "bf")
|
||||
bin=brainfuck
|
||||
;;
|
||||
*)
|
||||
echo "invalid language"
|
||||
exit
|
||||
|
|
2
lxc/executors/brainfuck
Executable file
2
lxc/executors/brainfuck
Executable file
|
@ -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 bf code.code"
|
Loading…
Add table
Add a link
Reference in a new issue