mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-07 20:36:26 +02:00
add support for bash
This commit is contained in:
parent
389f4ed335
commit
728c263c50
3 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
|
|||
"swift",
|
||||
"brainfuck", "bf",
|
||||
"rust",
|
||||
"bash",
|
||||
}
|
||||
|
||||
// check if the supplied language is supported
|
||||
|
|
2
lxc/executors/bash
Normal file
2
lxc/executors/bash
Normal 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 bash code.code"
|
1
tests/test.sh
Normal file
1
tests/test.sh
Normal file
|
@ -0,0 +1 @@
|
|||
echo 'good'
|
Loading…
Add table
Add a link
Reference in a new issue