feature(console) add ability to use CD on windows

This commit is contained in:
coderaiser 2014-07-08 10:36:29 -04:00
parent dfbb1ccd4f
commit 510330554f

View file

@ -105,6 +105,8 @@
connName, ret, isContain,
isVolume = win.isChangeVolume(command),
isCD = command.match(new RegExp('^cd ')),
isCDWin = command.match(new RegExp('^cd ', 'i')),
symbolsExec = ['*', '&', '{', '}', '|', '\'', '"'],
CWD = process.cwd(),
@ -121,7 +123,7 @@
if (equalPart(command, CLOUDCMD))
ret = onCloudCmd(command, callback);
else if (equalPart(command, 'cd ') || isVolume) {
else if (isCD || isCDWin && WIN || isVolume) {
ret = true;
onCD(command, dir, function(error, json) {