mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(console) onCD
This commit is contained in:
parent
248bee3339
commit
0e004d80f7
1 changed files with 2 additions and 2 deletions
|
|
@ -269,10 +269,10 @@
|
|||
return lRet;
|
||||
}
|
||||
|
||||
function onCD(pCommand, currDir, callback) {
|
||||
function onCD(cmd, currDir, callback) {
|
||||
var dir,
|
||||
getDir = WIN32 ? 'chdir' : 'pwd',
|
||||
paramDir = Util.rmStr(pCommand, 'cd ');
|
||||
paramDir = Util.rmStr(cmd, 'cd ');
|
||||
|
||||
if (equalPart(paramDir, ['/', '~']))
|
||||
dir = paramDir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue