mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(console) emit message on cd
This commit is contained in:
parent
8264c4afa0
commit
185f459d22
1 changed files with 4 additions and 7 deletions
|
|
@ -132,13 +132,10 @@
|
|||
ret = true;
|
||||
|
||||
onCD(command, dir, function(json) {
|
||||
var error = json.stderr,
|
||||
stdout = json.stdout;
|
||||
var path = json.path;
|
||||
|
||||
if (error)
|
||||
Util.exec(callback, json);
|
||||
else
|
||||
ClientDirs[connNum] = stdout;
|
||||
callback(json);
|
||||
ClientDirs[connNum] = path;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -295,7 +292,7 @@
|
|||
|
||||
Util.exec(callback, {
|
||||
stderr : errorStr,
|
||||
stdout : CloudFunc.rmNewLine(stdout)
|
||||
path : CloudFunc.rmNewLine(stdout)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue