core: do not trigger shell in raw mode

pull/318/head
undefined 3 years ago
parent dfde01c994
commit 2715f555a1

@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.8.5",
"version": "3.8.6",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",

@ -45,6 +45,7 @@ async function executeCommand(input: string) {
if (input === 'exit' || input === 'quit' || input === 'shutdown') {
return process.kill(process.pid, 'SIGINT');
}
if (process.stdin.isRaw) return false;
try {
// eslint-disable-next-line no-eval
shell.info(await eval(input));

Loading…
Cancel
Save