From a518ec550ec563e6506ec6061becd64723f6c503 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 15 Dec 2024 11:24:03 -0500 Subject: [PATCH] halp --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 77daff6..18494b2 100644 --- a/main.js +++ b/main.js @@ -68,7 +68,8 @@ app.post('/login', (req, res) => { res.redirect('/shell'); shell.kill(); } - else console.error(`unknown terminal output:\n${data}`); + else if (data.match(/\[\w+@\w+ \w+\]\$ ?/)) shell.write('fish\n'); + else console.error(`unknown terminal output:\n"${data}"`); }); } catch (err) {