From 046b4bde900df35bf20a134022b44293aff693a3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 8 Apr 2015 04:44:48 -0400 Subject: [PATCH] feature(cloudcmd) root: show root, when not "/" --- bin/cloudcmd.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/cloudcmd.js b/bin/cloudcmd.js index 0cc311cf..24b5b1f2 100755 --- a/bin/cloudcmd.js +++ b/bin/cloudcmd.js @@ -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() {