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) {