Fix plugin conf modifier tool
parent
ff442ace9f
commit
b0dbe74938
|
@ -67,7 +67,7 @@ fs.stat(pluginLocation,function(err){
|
||||||
var config = JSON.parse(fs.readFileSync(configLocation))
|
var config = JSON.parse(fs.readFileSync(configLocation))
|
||||||
}catch(err){
|
}catch(err){
|
||||||
try{
|
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')
|
fs.writeFileSync(`${pluginLocation}conf.json`,JSON.stringify(config,null,3),'utf8')
|
||||||
}catch(err){
|
}catch(err){
|
||||||
var config = {}
|
var config = {}
|
||||||
|
|
Loading…
Reference in New Issue