Fix incorrect CWDs
parent
cf20e90cc6
commit
3932f84586
4
index.js
4
index.js
|
@ -403,7 +403,7 @@ if (shellable || cmdable) {
|
||||||
|
|
||||||
child_process.exec(cmd, {
|
child_process.exec(cmd, {
|
||||||
shell: shell,
|
shell: shell,
|
||||||
cwd: res.filename,
|
cwd: relative(res.filename),
|
||||||
timeout: 60 * 1000,
|
timeout: 60 * 1000,
|
||||||
}, (err, stdout, stderr) => {
|
}, (err, stdout, stderr) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
@ -430,7 +430,7 @@ if (shellable || cmdable) {
|
||||||
});
|
});
|
||||||
|
|
||||||
io.on("connection", (socket) => {
|
io.on("connection", (socket) => {
|
||||||
let cwd = socket.handshake.query.path;
|
let cwd = relative(socket.handshake.query.path);
|
||||||
|
|
||||||
let term = pty.spawn(exec, args, {
|
let term = pty.spawn(exec, args, {
|
||||||
name: "xterm-256color",
|
name: "xterm-256color",
|
||||||
|
|
Loading…
Reference in New Issue