fix(console) emit message on cd

This commit is contained in:
coderaiser 2014-07-01 06:11:22 -04:00
parent 8264c4afa0
commit 185f459d22

View file

@ -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)
});
});
}