Commit 03099b9fc6dfd3b597696b601e5ac092bc99d9f6

Authored by Adhidarma Hadiwinoto
1 parent 0518210122
Exists in master

config-from-main fixed, i hope so

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -12,9 +12,9 @@ const candindates = [
12 12  
13 13 let config;
14 14  
15   -for (let candindate in candindates) {
  15 +for (let i of candindates) {
16 16 if (fs.existsSync(candindate)) {
17   - console.log(candindate + ' FOUND');
  17 + //console.log(candindate + ' FOUND');
18 18 try {
19 19 config = require(candindate);
20 20 config.this_config_filename = candindate;
... ... @@ -23,7 +23,7 @@ for (let candindate in candindates) {
23 23  
24 24 break;
25 25 }
26   - console.log(candindate + ' NOT FOUND');
  26 + //console.log(candindate + ' NOT FOUND');
27 27 }
28 28  
29 29 module.exports = config;