Cyphernodeconf now exits when config.7z is not present but the recreate option was specified

This commit is contained in:
SKP
2019-12-20 13:27:50 +01:00
parent e1354cb06f
commit 41fa9702d6

View File

@@ -149,6 +149,11 @@ module.exports = class App {
} );
if( !fs.existsSync(this.destinationPath(configArchiveFileName)) ) {
if( this.sessionData.noWizard ) {
console.log(chalk.bold.red('Unable to run in no wizard mode without a config.7z')+'\n');
process.exit();
return;
}
let r = {};
process.stdout.write(ansi.clear+ansi.reset);
while( !r.password0 || !r.password1 || r.password0 !== r.password1 ) {