mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-24 07:23:06 +03:00
Fixed MeshCore.js for XTerm.
This commit is contained in:
parent
ce156052ca
commit
b609e1fc91
@ -1230,19 +1230,6 @@ function createMeshCore(agent) {
|
||||
var bash = fs.existsSync('/bin/bash') ? '/bin/bash' : false;
|
||||
var sh = fs.existsSync('/bin/sh') ? '/bin/sh' : false;
|
||||
var script = false;
|
||||
<<<<<<< HEAD
|
||||
/*
|
||||
try {
|
||||
if (require('linux-gnome-helpers').scriptVersion) {
|
||||
if (require('linux-gnome-helpers').scriptVersion.major > 2 ||
|
||||
(require('linux-gnome-helpers').scriptVersion.major == 2 && require('linux-gnome-helpers').scriptVersion.minor >= 25)) {
|
||||
script = '/usr/bin/script';
|
||||
}
|
||||
}
|
||||
} catch (ex) { }
|
||||
*/
|
||||
var python = false; //fs.existsSync('/usr/bin/python') ? '/usr/bin/python' : false;
|
||||
=======
|
||||
if (this.httprequest.xoptions.script)
|
||||
{
|
||||
try
|
||||
@ -1258,7 +1245,6 @@ function createMeshCore(agent) {
|
||||
} catch (ex) { }
|
||||
}
|
||||
var python = (this.httprequest.xoptions.python && fs.existsSync('/usr/bin/python')) ? '/usr/bin/python' : false;
|
||||
>>>>>>> d44a88113778814efbc291357c3fe6cf1330bca5
|
||||
var shell = bash || sh;
|
||||
|
||||
var env = { HISTCONTROL: 'ignoreboth', TERM: 'xterm' };
|
||||
|
Loading…
Reference in New Issue
Block a user