From b45633e073b7a333b58c3f103a0515eed443dd59 Mon Sep 17 00:00:00 2001 From: Alessandro Gaggia Date: Thu, 1 Jul 2021 16:09:53 +0200 Subject: [PATCH] fix: #133 --- src/app/app.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index da1f69eb2..8c6d0ea8e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -118,7 +118,9 @@ export class AppComponent implements OnInit { private showCredentialBackupMessageIfNeeded(workspace: Workspace) { const oldAwsCredentialsPath = this.app.getOS().homedir() + '/' + environment.credentialsDestination; const newAwsCredentialsPath = oldAwsCredentialsPath + '.leapp.bkp'; - const check = workspace.sessions.length === 0 && this.app.getFs().existsSync(oldAwsCredentialsPath); + const check = workspace.sessions.length === 0 && + this.app.getFs().existsSync(oldAwsCredentialsPath) && + !this.app.getFs().existsSync(newAwsCredentialsPath); this.app.logger(`Check existing credential file: ${check}`, LoggerLevel.info, this);