mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 09:05:13 +01:00
Cyphernodeconf now exits when config.7z is not present but the recreate option was specified
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user