mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
feature(socket) any client could work with own dir
This commit is contained in:
parent
baf5629ddd
commit
7035a5a52f
1 changed files with 2 additions and 1 deletions
|
|
@ -293,6 +293,7 @@
|
|||
|
||||
function onCD(pCommand, currDir, callback) {
|
||||
var dir,
|
||||
getDir = WIN32 ? 'chdir' : 'pwd',
|
||||
paramDir = Util.removeStr(pCommand, 'cd ');
|
||||
|
||||
if (equalPart(paramDir, ['/', '~', '.']))
|
||||
|
|
@ -302,7 +303,7 @@
|
|||
|
||||
console.log(dir, paramDir);
|
||||
|
||||
exec('cd ' + dir + ' && pwd', function (error, stdout, stderr) {
|
||||
exec('cd ' + dir + ' && ' + getDir, function (error, stdout, stderr) {
|
||||
var lRet,
|
||||
lMsg = '',
|
||||
lError = error || stderr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue