1
0
Fork 0

Fix incorrect CWDs

pull/2/head
Ambrose Chua 2018-03-12 01:26:06 +09:00
parent cf20e90cc6
commit 3932f84586
1 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@ if (shellable || cmdable) {
child_process.exec(cmd, {
shell: shell,
cwd: res.filename,
cwd: relative(res.filename),
timeout: 60 * 1000,
}, (err, stdout, stderr) => {
if (err) {
@ -430,7 +430,7 @@ if (shellable || cmdable) {
});
io.on("connection", (socket) => {
let cwd = socket.handshake.query.path;
let cwd = relative(socket.handshake.query.path);
let term = pty.spawn(exec, args, {
name: "xterm-256color",