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