From cce98f7b94ce12e8b3bb8ace61040298add34b2c Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 3 Feb 2015 14:16:31 -0500 Subject: [PATCH] Fix check install --- tasks/config/project/install.js | 7 ++----- tasks/install.js | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tasks/config/project/install.js b/tasks/config/project/install.js index 788b07bd7..49d7c8243 100644 --- a/tasks/config/project/install.js +++ b/tasks/config/project/install.js @@ -28,9 +28,6 @@ var when = { hasConfig: function() { return requireDotFile('semantic.json'); }, - hasThemeFile: function() { - return true; - }, allowOverwrite: function(questions) { return (questions.overwrite === undefined || questions.overwrite == 'yes'); @@ -77,7 +74,7 @@ module.exports = { // check whether install is setup isSetup: function() { - return (when.hasThemeFile && when.hasConfig); + return when.hasConfig(); }, // checks if files are in a PM directory @@ -111,7 +108,7 @@ module.exports = { } else { if(path.resolve(directory) == '/') { - return packageManager; + return packageManager || false; } // recurse return walk(nextDirectory); diff --git a/tasks/install.js b/tasks/install.js index 860344491..ddc7f411a 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -48,12 +48,12 @@ module.exports = function () { ; console.clear(); - - // debug +/* + // debug mode manager = { name : 'NPM', root : path.normalize(__dirname + '/../') - }; + };*/ /*-------------- PM Update