From 527add155f83156ca5c96ef141fe1069ac34249c Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Sun, 24 Nov 2019 20:03:08 +0100 Subject: [PATCH] Fix broken fix Fixes c01eea2b9d650fe1c0e3303cdd52249dff345329 --- agents/meshcore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index 3bc93976..87578b1f 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -1100,7 +1100,7 @@ function createMeshCore(agent) { this.prependListener('end', function () { this.httprequest._term.end(function () { console.log('Terminal was closed'); }); }); } else { if (fs.existsSync("/usr/bin/python") && fs.existsSync("/bin/bash")) { - this.httprequest.process = childProcess.execFile("/usr/bin/python", [ "python", "-c", "import pty; pty.spawn([\"/bin/bash\"])" ], { type: childProcess.SpawnTypes.TERM }); + this.httprequest.process = childProcess.execFile("/usr/bin/python", [ "python", "-c", "import pty; pty.spawn([\"/bin/bash\"])" ]); if (process.platform == 'linux') { this.httprequest.process.stdin.write("export TERM='xterm'\nalias ls='ls --color=auto'\nclear\n"); } } else if (fs.existsSync("/bin/bash")) {