From 6ff766d90b756b0c1c1a560042c1c313d829af3b Mon Sep 17 00:00:00 2001 From: Brian Seymour Date: Fri, 12 Mar 2021 14:12:25 -0600 Subject: [PATCH] fix deno, fix clojure version, lolcode dynamic version --- api/src/languages.js | 2 ++ lxc/executors/deno | 3 ++- lxc/util/versions | 2 +- readme.md | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/src/languages.js b/api/src/languages.js index 6ac2f14..b1c93d2 100644 --- a/api/src/languages.js +++ b/api/src/languages.js @@ -22,6 +22,8 @@ const languages = require('../../config/languages.json'); versions[language] = /\d+/.exec(lines[1])?.[0]; } else if (language === 'emacs') { versions[language] = /\d+\.\d+/.exec(lines[1])?.[0]; + } else if (language === 'clojure') { + versions[language] = /\d+\.\d+\.\d+\.\d+/.exec(lines[1])?.[0]; } else { versions[language] = /\d+\.\d+\.\d+/.exec(section)?.[0]; } diff --git a/lxc/executors/deno b/lxc/executors/deno index 8ec4c14..85bdd93 100755 --- a/lxc/executors/deno +++ b/lxc/executors/deno @@ -1,4 +1,5 @@ #!/bin/bash cd /tmp/$1 -timeout -s KILL 3 xargs -a args.args -d '\n' NO_COLOR=true deno run code.code < stdin.stdin +export NO_COLOR=true +timeout -s KILL 3 xargs -a args.args -d '\n' deno run code.code < stdin.stdin diff --git a/lxc/util/versions b/lxc/util/versions index 5fd2866..49ec747 100755 --- a/lxc/util/versions +++ b/lxc/util/versions @@ -82,7 +82,7 @@ lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version" echo '---' echo 'lolcode' -echo '1.0.0' +lxc-attach --clear-env -n piston -- /bin/bash -l -c "lci --version" echo '---' echo 'lua' diff --git a/readme.md b/readme.md index d58b4e5..3628d2a 100644 --- a/readme.md +++ b/readme.md @@ -260,6 +260,7 @@ Content-Type: application/json `brainfuck`, `c`, `cpp`, +`clojure`, `crystal`, `csharp`, `d`,