Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
auto create empty secret.json
Browse files Browse the repository at this point in the history
  • Loading branch information
technologiespro committed Nov 23, 2020
1 parent bdcae64 commit f9c7260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Expand Up @@ -34,7 +34,8 @@ var logger = new Logger({ echo: appConfig.consoleLogLevel, errorLevel: appConfig
try {
appSecret = require('./secret.json');
} catch(e) {
logger.info('NO DELEGATE SECRET FILE, TRY COMMAND: mv sample.secret.json secret.json');
fs.writeFileSync('./secret.json', '{"secret":[]}');
logger.info('NO DELEGATE SECRET FILE: secret.json created');
}

program
Expand Down

0 comments on commit f9c7260

Please sign in to comment.