Skip to content

Commit

Permalink
Merge pull request #46 from eush77/unique-configs
Browse files Browse the repository at this point in the history
Don't add the same config file twice
  • Loading branch information
dominictarr committed Mar 28, 2015
2 parents 647ba0b + df21a26 commit a1486ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = function (name, defaults, argv, parse) {
var configs = [defaults]
var configFiles = []
function addConfigFile (file) {
if (configFiles.indexOf(file) >= 0) return
var fileConfig = cc.file(file)
if (fileConfig) {
configs.push(parse(fileConfig))
Expand Down

0 comments on commit a1486ae

Please sign in to comment.