Skip to content

Commit

Permalink
Look for config file in current folder
Browse files Browse the repository at this point in the history
Look for config file in current dir, not `coa.js`'s dir.

Also remove superfluous `process.cwd()`
  • Loading branch information
alexeyten committed Jun 19, 2013
1 parent 8a6b0bf commit 0bb214c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/svgo/coa.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports = require('coa').Cmd()

// external file
} else {
config = require(opts.config);
config = require(PATH.resolve(opts.config));
}

}
Expand Down Expand Up @@ -353,7 +353,7 @@ function optimizeFolder(path, config) {
var svgo = new SVGO(config);

// absoluted folder path
path = PATH.resolve(process.cwd(), path);
path = PATH.resolve(path);

UTIL.puts('\n' + path + ':\n');

Expand Down

0 comments on commit 0bb214c

Please sign in to comment.