mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-30 11:05:40 +01:00
only remove file if it actually exists :/
This commit is contained in:
@@ -273,7 +273,8 @@ module.exports = class extends Generator {
|
||||
|
||||
if( this.props.gatekeeper_keys && this.props.gatekeeper_keys.clientInformation ) {
|
||||
|
||||
if( this.gatekeeper_clientkeyspassword !== this.props.gatekeeper_clientkeyspassword ) {
|
||||
if( this.gatekeeper_clientkeyspassword !== this.props.gatekeeper_clientkeyspassword &&
|
||||
fs.existsSync(this.destinationPath('clientKeys.7z')) ) {
|
||||
fs.unlinkSync( this.destinationPath('clientKeys.7z') );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user