Fix plugin conf modifier tool

merge-requests/74/merge
Moe 2021-05-20 19:09:56 -07:00
parent ff442ace9f
commit b0dbe74938
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}