From ed3ffcc95ebde2ee5b4019b36dd5624ab08f5d0d Mon Sep 17 00:00:00 2001 From: gauthiier Date: Tue, 15 Jul 2014 21:14:08 +0200 Subject: [PATCH] fixed config.json problem --- generatebib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generatebib.js b/generatebib.js index cc3e129..0365020 100644 --- a/generatebib.js +++ b/generatebib.js @@ -68,7 +68,7 @@ var conf_default = { sort : true }; -var conf = JSON.parse(fs.readFileSync('config.json', 'utf8')); +var conf = (fs.existsSync('config.json') ? JSON.parse(fs.readFileSync('config.json', 'utf8')) : ""); conf = _.extend({}, conf_default, conf); var locales = {