From b0dbe7493802c2adac5c945058e0eae5fc7d348a Mon Sep 17 00:00:00 2001 From: Moe Date: Thu, 20 May 2021 19:09:56 -0700 Subject: [PATCH] Fix plugin conf modifier tool --- tools/modifyConfigurationForPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/modifyConfigurationForPlugin.js b/tools/modifyConfigurationForPlugin.js index b0276aff..4da19dc6 100644 --- a/tools/modifyConfigurationForPlugin.js +++ b/tools/modifyConfigurationForPlugin.js @@ -67,7 +67,7 @@ fs.stat(pluginLocation,function(err){ var config = JSON.parse(fs.readFileSync(configLocation)) }catch(err){ try{ - var config = fs.readFileSync(`${pluginLocation}conf.sample.json`,'utf8') + var config = JSON.parse(fs.readFileSync(`${pluginLocation}conf.sample.json`,'utf8')) fs.writeFileSync(`${pluginLocation}conf.json`,JSON.stringify(config,null,3),'utf8') }catch(err){ var config = {}