mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(console) add ability to use CD on windows
This commit is contained in:
parent
dfbb1ccd4f
commit
510330554f
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue