From a9bc0f2b83ed4478e03187b8c5148447ec8c2669 Mon Sep 17 00:00:00 2001 From: Toshiaki Nakatsu Date: Tue, 30 Sep 2014 14:52:09 +0900 Subject: [PATCH 1/2] change decision of ROOTDIR --- lib/nodectl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nodectl.js b/lib/nodectl.js index 2cdc5db..74c9ba1 100644 --- a/lib/nodectl.js +++ b/lib/nodectl.js @@ -51,6 +51,7 @@ NODECTL = require(path.join(ROOTCTL, 'package.json')); } if (fs.existsSync(path.resolve(trace, 'package.json'))) { NC.ROOTDIR = path.resolve(trace); + break; } } NC.PKGINFO = {}; From eb985c12fc0b35d1bcdcfafac0ffcbdfea992036 Mon Sep 17 00:00:00 2001 From: Toshiaki Nakatsu Date: Tue, 30 Sep 2014 15:11:49 +0900 Subject: [PATCH 2/2] change indent --- lib/nodectl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodectl.js b/lib/nodectl.js index 74c9ba1..f1f4db5 100644 --- a/lib/nodectl.js +++ b/lib/nodectl.js @@ -51,7 +51,7 @@ NODECTL = require(path.join(ROOTCTL, 'package.json')); } if (fs.existsSync(path.resolve(trace, 'package.json'))) { NC.ROOTDIR = path.resolve(trace); - break; + break; } } NC.PKGINFO = {};