Permalink
Browse files

Merge pull request #65 from natecavanaugh/patch-1

Update loader.js
  • Loading branch information...
davglass committed Mar 27, 2013
2 parents 06d70f9 + 1b515c1 commit 122b3a4bf52f47cef98c63feea9c6994fa1eefdf
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/cmds/loader.js
View
@@ -130,15 +130,16 @@ mods = {
scan: function() {
var self = this,
dirs = fs.readdirSync(this.start),
- metaFiles = [];
+ metaFiles = [],
+ base = self.base || '';
dirs.forEach(function(d) {
if (self.strict) {
- if (!util.exists(path.join(self.base, d, 'build.json'))) {
+ if (!util.exists(path.join(base, d, 'build.json'))) {
return; //No build.json file, exclude this automatically
}
}
- var p = path.join(self.base, d, 'meta'),
+ var p = path.join(base, d, 'meta'),
files;
if (util.exists(p)) {
files = fs.readdirSync(p);

0 comments on commit 122b3a4

Please sign in to comment.