Browse Source

Fix check install

pull/1785/head
jlukic 9 years ago
parent
commit
cce98f7b94
2 changed files with 5 additions and 8 deletions
  1. 7
      tasks/config/project/install.js
  2. 6
      tasks/install.js

7
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);

6
tasks/install.js

@ -48,12 +48,12 @@ module.exports = function () {
;
console.clear();
// debug
/*
// debug mode
manager = {
name : 'NPM',
root : path.normalize(__dirname + '/../')
};
};*/
/*--------------
PM Update

Loading…
Cancel
Save