|
|
@ -18,6 +18,7 @@ var fs = require('fs'),
|
|
|
|
RDB.smembers('plugins:active', next);
|
|
|
|
RDB.smembers('plugins:active', next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function(plugins, next) {
|
|
|
|
function(plugins, next) {
|
|
|
|
|
|
|
|
if (plugins.length > 0) {
|
|
|
|
async.each(plugins, function(plugin) {
|
|
|
|
async.each(plugins, function(plugin) {
|
|
|
|
// TODO: Update this check to also check node_modules
|
|
|
|
// TODO: Update this check to also check node_modules
|
|
|
|
var pluginPath = path.join(__dirname, '../plugins/', plugin),
|
|
|
|
var pluginPath = path.join(__dirname, '../plugins/', plugin),
|
|
|
@ -29,6 +30,7 @@ var fs = require('fs'),
|
|
|
|
next(); // Ignore this plugin silently
|
|
|
|
next(); // Ignore this plugin silently
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, next);
|
|
|
|
}, next);
|
|
|
|
|
|
|
|
} else next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
], function(err) {
|
|
|
|
], function(err) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|