mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudcmd) root: show root, when not "/"
This commit is contained in:
parent
9698dd4dcc
commit
046b4bde90
1 changed files with 9 additions and 2 deletions
|
|
@ -139,10 +139,17 @@
|
|||
}
|
||||
|
||||
function root(dir) {
|
||||
if (dir) {
|
||||
var current;
|
||||
|
||||
if (!dir) {
|
||||
current = config('root');
|
||||
} else {
|
||||
current = dir;
|
||||
config('root', dir);
|
||||
console.log('root:', dir);
|
||||
}
|
||||
|
||||
if (current && current !== '/')
|
||||
console.log('root:', dir);
|
||||
}
|
||||
|
||||
function repl() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue